diff options
author | Avi Kivity <avi@redhat.com> | 2012-04-18 19:22:47 +0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-04-19 20:35:07 -0300 |
commit | f78146b0f9230765c6315b2e14f56112513389ad (patch) | |
tree | 2e6780f2989c73c1bf214a5728514c1dc8e15f09 /arch/ia64/include | |
parent | eac0556750e727ff39144a9a9e59d5ccf1fc0e2a (diff) | |
download | blackbird-op-linux-f78146b0f9230765c6315b2e14f56112513389ad.tar.gz blackbird-op-linux-f78146b0f9230765c6315b2e14f56112513389ad.zip |
KVM: Fix page-crossing MMIO
MMIO that are split across a page boundary are currently broken - the
code does not expect to be aborted by the exit to userspace for the
first MMIO fragment.
This patch fixes the problem by generalizing the current code for handling
16-byte MMIOs to handle a number of "fragments", and changes the MMIO
code to create those fragments.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/ia64/include')
-rw-r--r-- | arch/ia64/include/asm/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ia64/include/asm/kvm_host.h b/arch/ia64/include/asm/kvm_host.h index c4b4bac3d09e..6d6a5ac48d85 100644 --- a/arch/ia64/include/asm/kvm_host.h +++ b/arch/ia64/include/asm/kvm_host.h @@ -449,6 +449,8 @@ struct kvm_vcpu_arch { char log_buf[VMM_LOG_LEN]; union context host; union context guest; + + char mmio_data[8]; }; struct kvm_vm_stat { |