/qemu/tests/image-fuzzer/qcow2/ |
H A D | fuzz.py | 167 return selector(current, constraints) 173 return selector(current, constraints) 179 return selector(current, constraints) 188 return selector(current, constraints) 194 return selector(current, constraints) 203 return selector(current, constraints) 209 return selector(current, constraints) 215 return selector(current, constraints) 221 return selector(current, constraints) 227 return selector(current, constraints) [all …]
|
/qemu/target/i386/tcg/ |
H A D | seg_helper.c | 140 if (selector & 0x4) { in load_segment_ra() 188 selector &= 0xffff; in load_seg_vm() 190 cpu_x86_load_seg_cache(env, seg, selector, (selector << 4), 0xffff, in load_seg_vm() 867 selector = (selector & ~3) | dpl; in do_interrupt_protected() 1048 selector = (selector & ~3) | dpl; in do_interrupt64() 1059 int cpl, selector; in helper_sysret() local 1119 int selector; in do_interrupt_real() local 1154 env->segs[R_CS].selector = selector; in do_interrupt_real() 1297 env->ldt.selector = selector; in helper_lldt() 1360 env->tr.selector = selector; in helper_ltr() [all …]
|
/qemu/target/i386/hvf/ |
H A D | x86_descr.c | 26 .selector = VMCS_GUEST_##seg##_SELECTOR, \ 33 int selector; member 66 sel.sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_selector() 70 void vmx_write_segment_selector(CPUState *cpu, x68_segment_selector selector, X86Seg seg) in vmx_write_segment_selector() argument 72 wvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector, selector.sel); in vmx_write_segment_selector() 77 desc->sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_descriptor() 89 wvmcs(cpu->accel->fd, sf->selector, desc->sel); in vmx_write_segment_descriptor() 93 void x86_segment_descriptor_to_vmx(CPUState *cpu, x68_segment_selector selector, in x86_segment_descriptor_to_vmx() argument 97 vmx_desc->sel = selector.sel; in x86_segment_descriptor_to_vmx() 101 vmx_desc->ar = (selector.sel ? 0 : 1) << 16 | in x86_segment_descriptor_to_vmx()
|
H A D | x86_descr.h | 40 x68_segment_selector selector, 48 x68_segment_selector selector,
|
/qemu/hw/acpi/ |
H A D | cpu.c | 59 if (cpu_st->selector >= cpu_st->dev_count) { in cpu_hotplug_rd() 63 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_rd() 75 val = cpu_st->selector; in cpu_hotplug_rd() 114 if (cpu_st->selector >= cpu_st->dev_count) { in cpu_hotplug_wr() 122 cpu_st->selector = data; in cpu_hotplug_wr() 126 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_wr() 162 uint32_t iter = cpu_st->selector; in cpu_hotplug_wr() 168 cpu_st->selector = iter; in cpu_hotplug_wr() 174 } while (iter != cpu_st->selector); in cpu_hotplug_wr() 181 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_wr() [all …]
|
H A D | memory_hotplug.c | 72 if (mem_st->selector >= mem_st->dev_count) { in acpi_memory_hotplug_read() 77 mdev = &mem_st->devs[mem_st->selector]; in acpi_memory_hotplug_read() 100 trace_mhp_acpi_read_pxm(mem_st->selector, val); in acpi_memory_hotplug_read() 106 trace_mhp_acpi_read_flags(mem_st->selector, val); in acpi_memory_hotplug_read() 130 if (mem_st->selector >= mem_st->dev_count) { in acpi_memory_hotplug_write() 138 mem_st->selector = data; in acpi_memory_hotplug_write() 139 trace_mhp_acpi_write_slot(mem_st->selector); in acpi_memory_hotplug_write() 142 mdev = &mem_st->devs[mem_st->selector]; in acpi_memory_hotplug_write() 152 mdev = &mem_st->devs[mem_st->selector]; in acpi_memory_hotplug_write() 162 mdev = &mem_st->devs[mem_st->selector]; in acpi_memory_hotplug_write() [all …]
|
/qemu/linux-user/ |
H A D | vm86.c | 217 if (env->segs[R_CS].selector == TARGET_BIOSSEG) in do_int() 231 ssp = env->segs[R_SS].selector << 4; in do_int() 277 csp = env->segs[R_CS].selector << 4; in handle_vm86_fault() 280 ssp = env->segs[R_SS].selector << 4; in handle_vm86_fault() 284 env->segs[R_CS].selector, env->eip); in handle_vm86_fault() 431 ts->vm86_saved_regs.cs = env->segs[R_CS].selector; in do_vm86() 432 ts->vm86_saved_regs.ss = env->segs[R_SS].selector; in do_vm86() 433 ts->vm86_saved_regs.ds = env->segs[R_DS].selector; in do_vm86() 434 ts->vm86_saved_regs.es = env->segs[R_ES].selector; in do_vm86() 435 ts->vm86_saved_regs.fs = env->segs[R_FS].selector; in do_vm86() [all …]
|
/qemu/bsd-user/i386/ |
H A D | target_arch_reg.h | 57 regs->r_fs = env->segs[R_FS].selector & 0xffff; in target_copy_regs() 58 regs->r_es = env->segs[R_ES].selector & 0xffff; in target_copy_regs() 59 regs->r_ds = env->segs[R_DS].selector & 0xffff; in target_copy_regs() 73 regs->r_cs = env->segs[R_CS].selector & 0xffff; in target_copy_regs() 78 regs->r_ss = env->segs[R_SS].selector & 0xffff; in target_copy_regs() 79 regs->r_gs = env->segs[R_GS].selector & 0xffff; in target_copy_regs()
|
/qemu/target/i386/ |
H A D | gdbstub.c | 153 return gdb_get_reg32(mem_buf, env->segs[R_CS].selector); in x86_cpu_gdb_read_register() 155 return gdb_get_reg32(mem_buf, env->segs[R_SS].selector); in x86_cpu_gdb_read_register() 157 return gdb_get_reg32(mem_buf, env->segs[R_DS].selector); in x86_cpu_gdb_read_register() 159 return gdb_get_reg32(mem_buf, env->segs[R_ES].selector); in x86_cpu_gdb_read_register() 161 return gdb_get_reg32(mem_buf, env->segs[R_FS].selector); in x86_cpu_gdb_read_register() 163 return gdb_get_reg32(mem_buf, env->segs[R_GS].selector); in x86_cpu_gdb_read_register() 224 uint16_t selector = ldl_p(mem_buf); in x86_cpu_gdb_load_seg() local 226 if (selector != env->segs[sreg].selector) { in x86_cpu_gdb_load_seg() 228 cpu_x86_load_seg(env, sreg, selector); in x86_cpu_gdb_load_seg() 235 base = selector << 4; in x86_cpu_gdb_load_seg() [all …]
|
H A D | arch_dump.c | 74 regs.cs = env->segs[R_CS].selector; in x86_64_write_elf64_note() 75 regs.ss = env->segs[R_SS].selector; in x86_64_write_elf64_note() 78 regs.ds = env->segs[R_DS].selector; in x86_64_write_elf64_note() 79 regs.es = env->segs[R_ES].selector; in x86_64_write_elf64_note() 80 regs.fs = env->segs[R_FS].selector; in x86_64_write_elf64_note() 81 regs.gs = env->segs[R_GS].selector; in x86_64_write_elf64_note() 140 prstatus->regs.cs = env->segs[R_CS].selector; in x86_fill_elf_prstatus() 141 prstatus->regs.ss = env->segs[R_SS].selector; in x86_fill_elf_prstatus() 142 prstatus->regs.ds = env->segs[R_DS].selector; in x86_fill_elf_prstatus() 243 uint32_t selector; member [all …]
|
/qemu/bsd-user/x86_64/ |
H A D | target_arch_reg.h | 80 regs->r_fs = env->segs[R_FS].selector & 0xffff; in target_copy_regs() 81 regs->r_gs = env->segs[R_GS].selector & 0xffff; in target_copy_regs() 83 regs->r_es = env->segs[R_ES].selector & 0xffff; in target_copy_regs() 84 regs->r_ds = env->segs[R_DS].selector & 0xffff; in target_copy_regs() 86 regs->r_cs = env->segs[R_CS].selector & 0xffff; in target_copy_regs() 89 regs->r_ss = env->segs[R_SS].selector & 0xffff; in target_copy_regs()
|
/qemu/target/i386/tcg/user/ |
H A D | seg_helper.c | 95 void cpu_x86_load_seg(CPUX86State *env, X86Seg seg_reg, int selector) in cpu_x86_load_seg() argument 99 selector &= 0xffff; in cpu_x86_load_seg() 100 cpu_x86_load_seg_cache(env, seg_reg, selector, in cpu_x86_load_seg() 101 (selector << 4), 0xffff, in cpu_x86_load_seg() 105 helper_load_seg(env, seg_reg, selector); in cpu_x86_load_seg()
|
/qemu/docs/specs/ |
H A D | acpi_cpu_hotplug.rst | 51 On QEMU start, 'CPU selector' is initialized to a valid value, on reset it 100 contains 'CPU selector' value of a CPU with pending event[s] 111 CPU selector: (DWORD access) 153 selected CPU ('CPU selector' value). 154 If no CPU with events found, the current 'CPU selector' doesn't 201 #. Store 0x0 to the 'CPU selector' register, to ensure valid selector value 210 #. Store 0x0 to the 'CPU selector' register. 223 #. Store 0x0 to the 'CPU selector' register, to ensure that it's in 226 register return 'CPU selector' value of selected CPU 230 #. Store the iterator to the 'CPU selector' register. [all …]
|
H A D | fw_cfg.rst | 25 Setting the selector register will cause the data offset to be set 29 Bit14 of the selector register indicates whether the configuration 34 the selector value is between 0x4000-0x7fff or 0xc000-0xffff. 43 governed independently of Bit14 in the selector key value. 45 Bit15 of the selector register indicates whether the configuration 49 items are accessed with a selector value between 0x0000-0x7fff, and 50 architecture specific configuration items are accessed with a selector 69 the selector register, as described above. 71 Initially following a write to the selector register, the data offset 135 Firmware configuration items stored at selector keys 0x0020 or higher [all …]
|
/qemu/dump/ |
H A D | win_dump.c | 310 .SegEs = env->segs[0].selector, in patch_and_save_context() 311 .SegCs = env->segs[1].selector, in patch_and_save_context() 312 .SegSs = env->segs[2].selector, in patch_and_save_context() 313 .SegDs = env->segs[3].selector, in patch_and_save_context() 314 .SegFs = env->segs[4].selector, in patch_and_save_context() 315 .SegGs = env->segs[5].selector, in patch_and_save_context() 351 .SegEs = env->segs[0].selector, in patch_and_save_context() 352 .SegCs = env->segs[1].selector, in patch_and_save_context() 353 .SegSs = env->segs[2].selector, in patch_and_save_context() 354 .SegDs = env->segs[3].selector, in patch_and_save_context() [all …]
|
/qemu/target/i386/tcg/sysemu/ |
H A D | seg_helper.c | 32 int selector; in helper_syscall() local 37 selector = (env->star >> 32) & 0xffff; in helper_syscall() 49 cpu_x86_load_seg_cache(env, R_CS, selector & 0xfffc, in helper_syscall() 55 cpu_x86_load_seg_cache(env, R_SS, (selector + 8) & 0xfffc, in helper_syscall() 71 cpu_x86_load_seg_cache(env, R_CS, selector & 0xfffc, in helper_syscall() 76 cpu_x86_load_seg_cache(env, R_SS, (selector + 8) & 0xfffc, in helper_syscall()
|
H A D | smm_helper.c | 60 x86_stw_phys(cs, sm_state + offset, dt->selector); in do_smm_enter() 69 x86_stw_phys(cs, sm_state + 0x7e70, env->ldt.selector); in do_smm_enter() 77 x86_stw_phys(cs, sm_state + 0x7e90, env->tr.selector); in do_smm_enter() 126 x86_stl_phys(cs, sm_state + 0x7fc4, env->tr.selector); in do_smm_enter() 131 x86_stl_phys(cs, sm_state + 0x7fc0, env->ldt.selector); in do_smm_enter() 149 x86_stl_phys(cs, sm_state + 0x7fa8 + i * 4, dt->selector); in do_smm_enter() 209 env->ldt.selector = x86_lduw_phys(cs, sm_state + 0x7e70); in helper_rsm() 217 env->tr.selector = x86_lduw_phys(cs, sm_state + 0x7e90); in helper_rsm() 274 env->tr.selector = x86_ldl_phys(cs, sm_state + 0x7fc4) & 0xffff; in helper_rsm() 279 env->ldt.selector = x86_ldl_phys(cs, sm_state + 0x7fc0) & 0xffff; in helper_rsm()
|
/qemu/target/s390x/tcg/ |
H A D | vec_helper.c | 179 const uint8_t selector = s390_vec_read_element8(v4, i) & 0x1f; in HELPER() local 182 if (selector < 16) { in HELPER() 183 byte = s390_vec_read_element8(v2, selector); in HELPER() 185 byte = s390_vec_read_element8(v3, selector - 16); in HELPER()
|
/qemu/contrib/elf2dmp/ |
H A D | main.c | 28 uint16_t selector; member 147 .SegCs = s->cs.selector, in win_context_init_from_qemu_cpu_state() 148 .SegSs = s->ss.selector, in win_context_init_from_qemu_cpu_state() 149 .SegDs = s->ds.selector, in win_context_init_from_qemu_cpu_state() 150 .SegEs = s->es.selector, in win_context_init_from_qemu_cpu_state() 151 .SegFs = s->fs.selector, in win_context_init_from_qemu_cpu_state() 152 .SegGs = s->gs.selector, in win_context_init_from_qemu_cpu_state()
|
H A D | qemu_elf.h | 13 uint32_t selector; member
|
/qemu/linux-user/i386/ |
H A D | signal.c | 262 if ((env->segs[R_SS].selector & 0xffff) != __USER_DS in get_sigframe() 353 __put_user(env->segs[R_GS].selector, (uint32_t *)&sc->gs); in setup_sigcontext() 354 __put_user(env->segs[R_FS].selector, (uint32_t *)&sc->fs); in setup_sigcontext() 355 __put_user(env->segs[R_ES].selector, (uint32_t *)&sc->es); in setup_sigcontext() 356 __put_user(env->segs[R_DS].selector, (uint32_t *)&sc->ds); in setup_sigcontext() 368 __put_user(env->segs[R_CS].selector, (uint32_t *)&sc->cs); in setup_sigcontext() 371 __put_user(env->segs[R_SS].selector, (uint32_t *)&sc->ss); in setup_sigcontext() 401 __put_user(env->segs[R_CS].selector, &sc->cs); in setup_sigcontext() 404 __put_user(env->segs[R_SS].selector, &sc->ss); in setup_sigcontext()
|
H A D | target_cpu.h | 44 cpu_x86_load_seg(env, R_GS, env->segs[R_GS].selector); in cpu_set_tls()
|
/qemu/ui/ |
H A D | cocoa.m | 1422 * menu item's old selector's name toggleFullScreen: 1719 …[menu addItemWithTitle:@"About QEMU" action:@selector(do_about_menu_item:) keyEquivalent:@""]; // … 1724 [menu addItemWithTitle:@"Hide QEMU" action:@selector(hide:) keyEquivalent:@"h"]; //Hide QEMU 1727 …[menu addItemWithTitle:@"Show All" action:@selector(unhideAllApplications:) keyEquivalent:@""]; //… 1729 [menu addItemWithTitle:@"Quit QEMU" action:@selector(terminate:) keyEquivalent:@"q"]; 1733 …[NSApp performSelector:@selector(setAppleMenu:) withObject:menu]; // Workaround (this method is pr… 1739 …menuItem = [[[NSMenuItem alloc] initWithTitle: @"Resume" action: @selector(resumeQEMU:) keyEquival… 1752 …menuItem = [[[NSMenuItem alloc] initWithTitle:@"Zoom To Fit" action:@selector(zoomToFit:) keyEquiv… 1825 … action: @selector(displayConsole:) keyEquivalent: @""] autorelease]; 1875 action: @selector(changeDeviceMedia:) [all …]
|
/qemu/include/hw/acpi/ |
H A D | memory_hotplug.h | 31 uint32_t selector; member
|
H A D | cpu.h | 36 uint32_t selector; member
|