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

* Re: [PATCH for-5.1] i386: hvf: Explicitly set CR4 guest/host mask
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Roman Bolshakov @ 2020-07-14 10:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: programmingkidx, Paolo Bonzini, Eduardo Habkost,
	Cameron Esfahani, Richard Henderson

On Tue, Jul 14, 2020 at 12:07:27PM +0300, Roman Bolshakov wrote:
> 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>
> 

If one has a chance to test or review it, it'd be very helpful. That'd
allow to include it in RC0.

Thanks,
Roman


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

* Re: [PATCH for-5.1] i386: hvf: Explicitly set CR4 guest/host mask
  2020-07-14 10:39 ` Roman Bolshakov
@ 2020-07-14 18:20   ` Paolo Bonzini
  2020-07-16 18:14     ` Eduardo Habkost
  0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2020-07-14 18:20 UTC (permalink / raw)
  To: Roman Bolshakov
  Cc: programmingkidx, Eduardo Habkost, qemu-devel, Cameron Esfahani,
	Richard Henderson

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

Hi Roman, please ask Peter to apply it directly because I won't be able to
send a pull request in the next couple of weeks.

Paolo

Il mar 14 lug 2020, 12:39 Roman Bolshakov <r.bolshakov@yadro.com> ha
scritto:

> On Tue, Jul 14, 2020 at 12:07:27PM +0300, Roman Bolshakov wrote:
> > 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>
> >
>
> If one has a chance to test or review it, it'd be very helpful. That'd
> allow to include it in RC0.
>
> Thanks,
> Roman
>
>

[-- Attachment #2: Type: text/html, Size: 1151 bytes --]

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

* Re: [PATCH for-5.1] i386: hvf: Explicitly set CR4 guest/host mask
  2020-07-14 18:20   ` Paolo Bonzini
@ 2020-07-16 18:14     ` Eduardo Habkost
  2020-07-16 18:57       ` Roman Bolshakov
  0 siblings, 1 reply; 5+ messages in thread
From: Eduardo Habkost @ 2020-07-16 18:14 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: programmingkidx, Roman Bolshakov, qemu-devel, Cameron Esfahani,
	Richard Henderson

On Tue, Jul 14, 2020 at 08:20:04PM +0200, Paolo Bonzini wrote:
> Hi Roman, please ask Peter to apply it directly because I won't be able to
> send a pull request in the next couple of weeks.
> 
> Paolo
> 
> Il mar 14 lug 2020, 12:39 Roman Bolshakov <r.bolshakov@yadro.com> ha
> scritto:
> 
> > On Tue, Jul 14, 2020 at 12:07:27PM +0300, Roman Bolshakov wrote:
> > > 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>
> > >
> >
> > If one has a chance to test or review it, it'd be very helpful. That'd
> > allow to include it in RC0.
> >

I'll queue it for my -rc1 pull request.

-- 
Eduardo



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

* Re: [PATCH for-5.1] i386: hvf: Explicitly set CR4 guest/host mask
  2020-07-16 18:14     ` Eduardo Habkost
@ 2020-07-16 18:57       ` Roman Bolshakov
  0 siblings, 0 replies; 5+ messages in thread
From: Roman Bolshakov @ 2020-07-16 18:57 UTC (permalink / raw)
  To: Eduardo Habkost
  Cc: programmingkidx, Paolo Bonzini, qemu-devel, Cameron Esfahani,
	Richard Henderson

On Thu, Jul 16, 2020 at 02:14:57PM -0400, Eduardo Habkost wrote:
> On Tue, Jul 14, 2020 at 08:20:04PM +0200, Paolo Bonzini wrote:
> > Hi Roman, please ask Peter to apply it directly because I won't be able to
> > send a pull request in the next couple of weeks.
> > 
> > Paolo
> > 
> > Il mar 14 lug 2020, 12:39 Roman Bolshakov <r.bolshakov@yadro.com> ha
> > scritto:
> > 
> > > On Tue, Jul 14, 2020 at 12:07:27PM +0300, Roman Bolshakov wrote:
> > > > 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>
> > > >
> > >
> > > If one has a chance to test or review it, it'd be very helpful. That'd
> > > allow to include it in RC0.
> > >
> 
> I'll queue it for my -rc1 pull request.
> 

Thanks!

-Roman


^ permalink raw reply	[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.