KVM: Provide unlocked version of emulator_write_phys()

Signed-off-by: Avi Kivity <[email protected]>
This commit is contained in:
Avi Kivity 2008-03-02 14:06:05 +02:00
commit 9f81128591
2 changed files with 17 additions and 7 deletions

View file

@ -432,6 +432,9 @@ void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages);
int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3);
int __emulator_write_phys(struct kvm_vcpu *vcpu, gpa_t gpa,
const void *val, int bytes);
enum emulation_result {
EMULATE_DONE, /* no further processing */
EMULATE_DO_MMIO, /* kvm_run filled with mmio request */