From 29a3d669c7a4d4f504bbaeb911133e20d6971d85 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 17 Apr 2008 12:37:35 +0100 Subject: x86, hvm: Allow emulation of 'multi-cycle' MMIO reads and writes, which may require multiple round trips to the device model. Signed-off-by: Keir Fraser --- xen/include/asm-x86/hvm/vcpu.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'xen/include/asm-x86/hvm/vcpu.h') diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index 6ff8de5fc4..fc43d5d20d 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -83,10 +83,16 @@ struct hvm_vcpu { */ unsigned long mmio_gva; unsigned long mmio_gpfn; - + /* Callback into x86_emulate when emulating FPU/MMX/XMM instructions. */ void (*fpu_exception_callback)(void *, struct cpu_user_regs *); void *fpu_exception_callback_arg; + /* We may read up to m128 as a number of device-model transactions. */ + paddr_t mmio_large_read_pa; + uint8_t mmio_large_read[16]; + unsigned int mmio_large_read_bytes; + /* We may write up to m128 as a number of device-model transactions. */ + paddr_t mmio_large_write_pa; + unsigned int mmio_large_write_bytes; }; #endif /* __ASM_X86_HVM_VCPU_H__ */ - -- cgit v1.2.3