diff options
-rw-r--r-- | Documentation/kernel-parameters.txt | 3 | ||||
-rw-r--r-- | arch/x86/kvm/mmu.c | 5 |
2 files changed, 0 insertions, 8 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 81c287fad79d..6e7cce096e6b 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -1178,9 +1178,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
1178 | kvm.ignore_msrs=[KVM] Ignore guest accesses to unhandled MSRs. | 1178 | kvm.ignore_msrs=[KVM] Ignore guest accesses to unhandled MSRs. |
1179 | Default is 0 (don't ignore, but inject #GP) | 1179 | Default is 0 (don't ignore, but inject #GP) |
1180 | 1180 | ||
1181 | kvm.oos_shadow= [KVM] Disable out-of-sync shadow paging. | ||
1182 | Default is 1 (enabled) | ||
1183 | |||
1184 | kvm.mmu_audit= [KVM] This is a R/W parameter which allows audit | 1181 | kvm.mmu_audit= [KVM] This is a R/W parameter which allows audit |
1185 | KVM MMU at runtime. | 1182 | KVM MMU at runtime. |
1186 | Default is 0 (off) | 1183 | Default is 0 (off) |
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 262a3af1f0ec..b1178d1bb8f5 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -93,9 +93,6 @@ static int dbg = 0; | |||
93 | module_param(dbg, bool, 0644); | 93 | module_param(dbg, bool, 0644); |
94 | #endif | 94 | #endif |
95 | 95 | ||
96 | static int oos_shadow = 1; | ||
97 | module_param(oos_shadow, bool, 0644); | ||
98 | |||
99 | #ifndef MMU_DEBUG | 96 | #ifndef MMU_DEBUG |
100 | #define ASSERT(x) do { } while (0) | 97 | #define ASSERT(x) do { } while (0) |
101 | #else | 98 | #else |
@@ -2196,8 +2193,6 @@ static int mmu_need_write_protect(struct kvm_vcpu *vcpu, gfn_t gfn, | |||
2196 | return 1; | 2193 | return 1; |
2197 | 2194 | ||
2198 | if (!need_unsync && !s->unsync) { | 2195 | if (!need_unsync && !s->unsync) { |
2199 | if (!oos_shadow) | ||
2200 | return 1; | ||
2201 | need_unsync = true; | 2196 | need_unsync = true; |
2202 | } | 2197 | } |
2203 | } | 2198 | } |