Lines Matching refs:ctrl
313 kdd_ctrl ctrl; in v2p() local
315 if (kdd_get_ctrl(s->guest, cpuid, &ctrl, s->os.w64) != 0 in v2p()
320 pg = !!(ctrl.c64.cr0 & 0x80000000); in v2p()
322 pae = !!(ctrl.c64.cr4 & 0x00000020); in v2p()
323 pse = !!(ctrl.c64.cr4 & 0x00000010) || pae || lma; in v2p()
324 pa = ctrl.c64.cr3 & ~0x0fULL; in v2p()
326 pg = !!(ctrl.c32.cr0 & 0x80000000); in v2p()
327 pae = !!(ctrl.c32.cr4 & 0x00000020); in v2p()
329 pse = !!(ctrl.c32.cr4 & 0x00000010) || pae; in v2p()
330 pa = ctrl.c32.cr3 & ~0x0fULL; in v2p()
580 kdd_ctrl ctrl; in get_os_info_64() local
604 ret = kdd_get_ctrl(s->guest, s->cpuid, &ctrl, s->os.w64); in get_os_info_64()
609 kdd_read_virtual(s, s->cpuid, ctrl.c64.idt_base + 8, 8, &buf); in get_os_info_64()
612 kdd_read_virtual(s, s->cpuid, ctrl.c64.idt_base, 8, &buf); in get_os_info_64()
981 kdd_ctrl ctrl; in kdd_handle_read_ctrl() local
995 if (kdd_get_ctrl(s->guest, s->cpuid, &ctrl, s->os.w64)) { in kdd_handle_read_ctrl()
1019 if (len > sizeof ctrl.c64) in kdd_handle_read_ctrl()
1020 len = sizeof ctrl.c64; in kdd_handle_read_ctrl()
1021 memcpy(buf, (uint8_t *)&ctrl, len); in kdd_handle_read_ctrl()
1030 if (offset > sizeof ctrl.c32) in kdd_handle_read_ctrl()
1032 if (offset > sizeof ctrl.c32 || len > sizeof ctrl.c32 - offset) { in kdd_handle_read_ctrl()
1036 memcpy(buf, ((uint8_t *)&ctrl.c32) + offset, len); in kdd_handle_read_ctrl()