Home
last modified time | relevance | path

Searched refs:cr0 (Results 1 – 25 of 37) sorted by relevance

12

/xen/xen/arch/x86/hvm/svm/
A Dsvmdebug.c106 unsigned long cr0 = vmcb_get_cr0(vmcb); in svm_vmcb_isvalid() local
120 if ( !(cr0 & X86_CR0_CD) && (cr0 & X86_CR0_NW) ) in svm_vmcb_isvalid()
121 PRINTF("CR0: CD bit is zero and NW bit set (%#"PRIx64")\n", cr0); in svm_vmcb_isvalid()
123 if ( cr0 >> 32 ) in svm_vmcb_isvalid()
124 PRINTF("CR0: bits [63:32] are not zero (%#"PRIx64")\n", cr0); in svm_vmcb_isvalid()
126 if ( (cr0 & X86_CR0_PG) && in svm_vmcb_isvalid()
151 if ( (efer & EFER_LME) && (cr0 & X86_CR0_PG) ) in svm_vmcb_isvalid()
155 if ( !(cr0 & X86_CR0_PE) ) in svm_vmcb_isvalid()
159 if ( (efer & EFER_LME) && (cr0 & X86_CR0_PG) && (cr4 & X86_CR4_PAE) && in svm_vmcb_isvalid()
A Dnestedsvm.c428 uint64_t cr0; in nsvm_vmcb_prepare4vmrun() local
566 cr0 = nestedsvm_fpu_vmentry(svm->ns_cr0, ns_vmcb, n1vmcb, n2vmcb); in nsvm_vmcb_prepare4vmrun()
568 rc = hvm_set_cr0(cr0, true); in nsvm_vmcb_prepare4vmrun()
/xen/xen/arch/x86/x86_64/
A Dkexec_reloc.S56 movq %cr0, %rax
59 movq %rax, %cr0
155 movl %cr0, %eax
157 movl %eax, %cr0
/xen/xen/arch/x86/boot/
A Dtrampoline.S57 mov %ebx, %cr0 # Alias with CR0.PE for brevity
108 mov %eax,%cr0
179 mov %cr0,%eax
183 1: mov %eax,%cr0 # CR0.PE = 0 (leave protected mode)
236 mov %eax, %cr0
A Dwakeup.S55 mov %eax, %cr0
144 mov %eax,%cr0
A Dhead.S374 mov %cr0,%edx
376 mov %edx,%cr0
/xen/tools/firmware/rombios/
A D32bitgateway.c108 mov eax, cr0
110 mov cr0, eax variable
144 mov eax, cr0
146 mov cr0, eax variable
/xen/xen/arch/x86/
A Dalternative.c337 unsigned long cr0; in nmi_apply_alternatives() local
339 cr0 = read_cr0(); in nmi_apply_alternatives()
342 write_cr0(cr0 & ~X86_CR0_WP); in nmi_apply_alternatives()
347 write_cr0(cr0); in nmi_apply_alternatives()
A Dxstate.c740 unsigned long cr0 = read_cr0(); in handle_xsetbv() local
751 cr0 &= ~X86_CR0_TS; in handle_xsetbv()
754 if ( cr0 & X86_CR0_TS ) in handle_xsetbv()
755 write_cr0(cr0); in handle_xsetbv()
763 unsigned long cr0 = read_cr0(); in read_bndcfgu() local
788 if ( cr0 & X86_CR0_TS ) in read_bndcfgu()
789 write_cr0(cr0); in read_bndcfgu()
796 unsigned long cr0 = read_cr0(); in xstate_set_init() local
815 if ( cr0 & X86_CR0_TS ) in xstate_set_init()
816 write_cr0(cr0); in xstate_set_init()
A Dvm_event.c102 w->do_write.cr0 = 0; in vm_event_register_write_resume()
231 req->data.regs.x86.cr0 = curr->arch.hvm.guest_cr[0]; in vm_event_fill_regs()
/xen/xen/include/public/hvm/
A Dhvm_vcpu.h40 uint32_t cr0; member
103 uint64_t cr0; member
/xen/xen/arch/x86/hvm/
A Dvm_event.c96 if ( unlikely(w->do_write.cr0) ) in hvm_vm_event_do_resume()
98 if ( hvm_set_cr0(w->cr0, false) == X86EMUL_EXCEPTION ) in hvm_vm_event_do_resume()
101 w->do_write.cr0 = 0; in hvm_vm_event_do_resume()
A Ddomain.c209 v->arch.hvm.guest_cr[0] = regs->cr0; in arch_set_info_hvm_guest()
228 if ( !(regs->cr0 & X86_CR0_PG) ) in arch_set_info_hvm_guest()
231 regs->cr0); in arch_set_info_hvm_guest()
260 v->arch.hvm.guest_cr[0] = regs->cr0; in arch_set_info_hvm_guest()
/xen/xen/arch/x86/acpi/
A Dwakeup_prot.S20 mov %cr0, %rax
50 mov %rax, %cr0
/xen/xen/include/asm-x86/
A Delf.h5 unsigned long cr0, cr2, cr3, cr4; member
A Dprocessor.h275 unsigned long cr0; in read_cr0() local
276 asm volatile ( "mov %%cr0,%0\n\t" : "=r" (cr0) ); in read_cr0()
277 return cr0; in read_cr0()
A Ddomain.h283 unsigned int cr0 : 1; member
292 uint64_t cr0; member
/xen/xen/include/asm-x86/x86_64/
A Delf.h68 xen_core_regs->cr0 = tmp; in elf_core_save_regs()
/xen/tools/libxc/
A Dxc_pagetab.c48 if (!(ctx.cr0 & CR0_PG)) in xc_translate_foreign_address()
/xen/tools/debugger/kdd/
A Dkdd-xen.c367 c->cr0 = cpu->cr0; in kdd_get_ctrl_x86_32()
389 c->cr0 = cpu->cr0; in kdd_get_ctrl_x86_64()
A Dkdd.h413 uint32_t cr0; member
435 uint64_t cr0; member
/xen/xen/include/public/arch-x86/hvm/
A Dsave.h80 uint64_t cr0; member
194 uint64_t cr0; member
/xen/xen/include/public/
A Dvm_event.h200 uint64_t cr0; member
/xen/stubdom/
A Dnewlib.patch258 -#define cr0 REG(cr0)
333 +#define cr0 %cr0
/xen/xen/arch/x86/hvm/vmx/
A Dvmcs.c678 u64 cr0, vmx_cr0_fixed0, vmx_cr0_fixed1; in _vmx_cpu_up() local
686 cr0 = read_cr0(); in _vmx_cpu_up()
689 if ( (~cr0 & vmx_cr0_fixed0) || (cr0 & ~vmx_cr0_fixed1) ) in _vmx_cpu_up()

Completed in 33 milliseconds

12