aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/kvm_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index aadef264bed1..91a36e21c0fb 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1637,8 +1637,8 @@ int kvm_gfn_to_hva_cache_init(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1637 ghc->generation = slots->generation; 1637 ghc->generation = slots->generation;
1638 ghc->len = len; 1638 ghc->len = len;
1639 ghc->memslot = gfn_to_memslot(kvm, start_gfn); 1639 ghc->memslot = gfn_to_memslot(kvm, start_gfn);
1640 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, &nr_pages_avail); 1640 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, NULL);
1641 if (!kvm_is_error_hva(ghc->hva) && nr_pages_avail >= nr_pages_needed) { 1641 if (!kvm_is_error_hva(ghc->hva) && nr_pages_needed <= 1) {
1642 ghc->hva += offset; 1642 ghc->hva += offset;
1643 } else { 1643 } else {
1644 /* 1644 /*