All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-5.1] i386: hvf: Explicitly set CR4 guest/host mask
@ 2020-07-14  9:07 Roman Bolshakov
  2020-07-14 10:39 ` Roman Bolshakov
  0 siblings, 1 reply; 5+ messages in thread
From: Roman Bolshakov @ 2020-07-14  9:07 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Roman Bolshakov, Eduardo Habkost,
	Cameron Esfahani, Richard Henderson

Removal of register reset omitted initialization of CR4 guest/host mask.
x86_64 guests aren't booting without it.

Fixes: 5009ef22c6bb2 ("i386: hvf: Don't duplicate register reset")
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
---
 target/i386/hvf/vmx.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/i386/hvf/vmx.h b/target/i386/hvf/vmx.h
index 75ba1e2a5f..587b1b8375 100644
--- a/target/i386/hvf/vmx.h
+++ b/target/i386/hvf/vmx.h
@@ -166,6 +166,7 @@ static inline void macvm_set_cr4(hv_vcpuid_t vcpu, uint64_t cr4)
 
     wvmcs(vcpu, VMCS_GUEST_CR4, guest_cr4);
     wvmcs(vcpu, VMCS_CR4_SHADOW, cr4);
+    wvmcs(vcpu, VMCS_CR4_MASK, CR4_VMXE);
 
     hv_vcpu_invalidate_tlb(vcpu);
     hv_vcpu_flush(vcpu);
-- 
2.26.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-16 18:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14  9:07 [PATCH for-5.1] i386: hvf: Explicitly set CR4 guest/host mask Roman Bolshakov
2020-07-14 10:39 ` Roman Bolshakov
2020-07-14 18:20   ` Paolo Bonzini
2020-07-16 18:14     ` Eduardo Habkost
2020-07-16 18:57       ` Roman Bolshakov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.