+ kvm-vmx-hack-set_cr0_no_modeswitch-to-actually-do.patch added to -mm tree

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

 



The patch titled
     KVM: vmx: hack set_cr0_no_modeswitch() to actually do modeswitch
has been added to the -mm tree.  Its filename is
     kvm-vmx-hack-set_cr0_no_modeswitch-to-actually-do.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: KVM: vmx: hack set_cr0_no_modeswitch() to actually do modeswitch
From: Markus Rechberger <markus.rechberger@xxxxxxx>

The whole thing is rotten, but this allows vmx to boot with the guest reboot
fix.

Signed-off-by: Markus Rechberger <markus.rechberger@xxxxxxx>
Signed-off-by: Joerg Roedel <joerg.roedel@xxxxxxx>
Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/kvm/vmx.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN drivers/kvm/vmx.c~kvm-vmx-hack-set_cr0_no_modeswitch-to-actually-do drivers/kvm/vmx.c
--- a/drivers/kvm/vmx.c~kvm-vmx-hack-set_cr0_no_modeswitch-to-actually-do
+++ a/drivers/kvm/vmx.c
@@ -791,6 +791,9 @@ static void vmx_set_cr0(struct kvm_vcpu 
  */
 static void vmx_set_cr0_no_modeswitch(struct kvm_vcpu *vcpu, unsigned long cr0)
 {
+	if (!vcpu->rmode.active && !(cr0 & CR0_PE_MASK))
+		enter_rmode(vcpu);
+
 	vcpu->rmode.active = ((cr0 & CR0_PE_MASK) == 0);
 	update_exception_bitmap(vcpu);
 	vmcs_writel(CR0_READ_SHADOW, cr0);
_

Patches currently in -mm which might be from markus.rechberger@xxxxxxx are

kvm-vmx-hack-set_cr0_no_modeswitch-to-actually-do.patch
kvm-use-page_private-set_page_private-apis.patch

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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux