diff options
author | Avi Kivity <avi@qumranet.com> | 2007-10-11 09:13:49 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:52 -0500 |
commit | 6bfccdc9ae55bb2e0be2e015d7d1ba061f4071c5 (patch) | |
tree | ab390a7bd0803d7535bea6c28cbb4e26d4dd8e87 | |
parent | cc70e7374df1e3a56d718e8ca330619f316511a6 (diff) |
KVM: MMU: Instantiate real-mode shadows as user writable shadows
This is consistent with real-mode permissions.
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | drivers/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index e6616a6c9cef..f52604a7f9e8 100644 --- a/drivers/kvm/mmu.c +++ b/drivers/kvm/mmu.c | |||
@@ -902,7 +902,7 @@ static int nonpaging_map(struct kvm_vcpu *vcpu, gva_t v, hpa_t p) | |||
902 | >> PAGE_SHIFT; | 902 | >> PAGE_SHIFT; |
903 | new_table = kvm_mmu_get_page(vcpu, pseudo_gfn, | 903 | new_table = kvm_mmu_get_page(vcpu, pseudo_gfn, |
904 | v, level - 1, | 904 | v, level - 1, |
905 | 1, 0, &table[index]); | 905 | 1, 3, &table[index]); |
906 | if (!new_table) { | 906 | if (!new_table) { |
907 | pgprintk("nonpaging_map: ENOMEM\n"); | 907 | pgprintk("nonpaging_map: ENOMEM\n"); |
908 | return -ENOMEM; | 908 | return -ENOMEM; |