diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-12-13 10:50:52 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:58:09 -0500 |
commit | ad312c7c79f781c822e37effe41307503a2bb85b (patch) | |
tree | d979bfb70e76ada58b79b456c61a0507a8f0847d /drivers/kvm/kvm_main.c | |
parent | 682c59a3f3f211ed555b17144f2d82eb8286a1db (diff) |
KVM: Portability: Introduce kvm_vcpu_arch
Move all the architecture-specific fields in kvm_vcpu into a new struct
kvm_vcpu_arch.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r-- | drivers/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 1a03b67eb921..ae2a1bf640bc 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -670,7 +670,7 @@ static int kvm_vcpu_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
670 | if (vmf->pgoff == 0) | 670 | if (vmf->pgoff == 0) |
671 | page = virt_to_page(vcpu->run); | 671 | page = virt_to_page(vcpu->run); |
672 | else if (vmf->pgoff == KVM_PIO_PAGE_OFFSET) | 672 | else if (vmf->pgoff == KVM_PIO_PAGE_OFFSET) |
673 | page = virt_to_page(vcpu->pio_data); | 673 | page = virt_to_page(vcpu->arch.pio_data); |
674 | else | 674 | else |
675 | return VM_FAULT_SIGBUS; | 675 | return VM_FAULT_SIGBUS; |
676 | get_page(page); | 676 | get_page(page); |