aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2007-07-23 02:51:39 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:19 -0400
commitfe5518819463d57ed032bc12458ed681bc790609 (patch)
tree15d13f175f2b77970eb7d84d442689426cafd283 /drivers/kvm/kvm.h
parent9ae0448f53324b3c476f68bd134d97ac4ec27e0c (diff)
KVM: Move gfn_to_page out of kmap/unmap pairs
gfn_to_page might sleep with swap support. Move it out of the kmap calls. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index cec5f057f3bf..57504ae93dbc 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -599,7 +599,7 @@ int kvm_write_guest(struct kvm_vcpu *vcpu,
599unsigned long segment_base(u16 selector); 599unsigned long segment_base(u16 selector);
600 600
601void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, 601void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa,
602 const u8 *old, const u8 *new, int bytes); 602 const u8 *new, int bytes);
603int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva); 603int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva);
604void __kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu); 604void __kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu);
605int kvm_mmu_load(struct kvm_vcpu *vcpu); 605int kvm_mmu_load(struct kvm_vcpu *vcpu);