diff options
author | Shaohua Li <shaohua.li@intel.com> | 2007-07-23 02:51:39 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:19 -0400 |
commit | fe5518819463d57ed032bc12458ed681bc790609 (patch) | |
tree | 15d13f175f2b77970eb7d84d442689426cafd283 /drivers/kvm/kvm.h | |
parent | 9ae0448f53324b3c476f68bd134d97ac4ec27e0c (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.h | 2 |
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, | |||
599 | unsigned long segment_base(u16 selector); | 599 | unsigned long segment_base(u16 selector); |
600 | 600 | ||
601 | void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, | 601 | void 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); |
603 | int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva); | 603 | int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva); |
604 | void __kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu); | 604 | void __kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu); |
605 | int kvm_mmu_load(struct kvm_vcpu *vcpu); | 605 | int kvm_mmu_load(struct kvm_vcpu *vcpu); |