diff options
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/mmu.c | 1 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index aaa60f347b73..f5704d9e5ddc 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -2672,6 +2672,7 @@ static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write, | |||
2672 | break; | 2672 | break; |
2673 | } | 2673 | } |
2674 | 2674 | ||
2675 | drop_large_spte(vcpu, iterator.sptep); | ||
2675 | if (!is_shadow_present_pte(*iterator.sptep)) { | 2676 | if (!is_shadow_present_pte(*iterator.sptep)) { |
2676 | u64 base_addr = iterator.addr; | 2677 | u64 base_addr = iterator.addr; |
2677 | 2678 | ||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1e91a246e996..a45bcac45645 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -6225,7 +6225,7 @@ static int complete_emulated_mmio(struct kvm_vcpu *vcpu) | |||
6225 | frag->len -= len; | 6225 | frag->len -= len; |
6226 | } | 6226 | } |
6227 | 6227 | ||
6228 | if (vcpu->mmio_cur_fragment == vcpu->mmio_nr_fragments) { | 6228 | if (vcpu->mmio_cur_fragment >= vcpu->mmio_nr_fragments) { |
6229 | vcpu->mmio_needed = 0; | 6229 | vcpu->mmio_needed = 0; |
6230 | 6230 | ||
6231 | /* FIXME: return into emulator if single-stepping. */ | 6231 | /* FIXME: return into emulator if single-stepping. */ |