Re: [PATCH 4/24] Allow setting the VMXE bit in CR4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 13, 2010 at 03:24:37PM +0300, Nadav Har'El wrote:
> This patch allows the guest to enable the VMXE bit in CR4, which is a
> prerequisite to running VMXON.
> 
> Signed-off-by: Nadav Har'El <nyh@xxxxxxxxxx>
> ---
> --- .before/arch/x86/kvm/x86.c	2010-06-13 15:01:28.000000000 +0300
> +++ .after/arch/x86/kvm/x86.c	2010-06-13 15:01:28.000000000 +0300
> @@ -501,7 +501,7 @@ int __kvm_set_cr4(struct kvm_vcpu *vcpu,
>  		   && !load_pdptrs(vcpu, vcpu->arch.cr3))
>  		return 1;
>  
> -	if (cr4 & X86_CR4_VMXE)
> +	if (cr4 & X86_CR4_VMXE && !nested)
>  		return 1;
>  
We shouldn't be able to clear X86_CR4_VMXE after VMXON.

>  	kvm_x86_ops->set_cr4(vcpu, cr4);
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
			Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux