From: Avi Kivity <[email protected]>

Since we no longer modify vmcs_readl() to touch the PDA, we don't need
to hack it when it is called in contexts where gsbase is corrupted.

Signed-off-by: Avi Kivity <[email protected]>

diff --git a/x86/hack-module.awk b/x86/hack-module.awk
index 143aa52..5bb1c31 100644
--- a/x86/hack-module.awk
+++ b/x86/hack-module.awk
@@ -35,15 +35,6 @@ BEGIN { split("INIT_WORK desc_struct ldttss_desc64 desc_ptr 
" \
 
 { sub(/match->dev->msi_enabled/, "kvm_pcidev_msi_enabled(match->dev)") }
 
-/^static void __vmx_load_host_state/ {
-    vmx_load_host_state = 1
-}
-
-/vmcs_readl\(HOST_GS_BASE\)/ &&  vmx_load_host_state {
-    $0 = "\t\twrmsrl(MSR_GS_BASE, gsbase);";
-    vmx_load_host_state = 0
-}
-
 /atomic_inc\(&kvm->mm->mm_count\);/ { $0 = "mmget(&kvm->mm->mm_count);" }
 
 /^\t\.fault = / {
@@ -87,14 +78,6 @@ BEGIN { split("INIT_WORK desc_struct ldttss_desc64 desc_ptr 
" \
 
 { print }
 
-/unsigned long flags;/ &&  vmx_load_host_state {
-    print "\tunsigned long gsbase;"
-}
-
-/local_irq_save/ &&  vmx_load_host_state {
-    print "\t\tgsbase = vmcs_readl(HOST_GS_BASE);"
-}
-
 /\tkvm_init_debug/ {
     print "\thrtimer_kallsyms_resolve();"
 }
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to