aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/emulate.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-09-15 14:03:26 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-09-15 14:03:26 +0100
commit65f68374804151495b0e62ca9a32e8be5fd39454 (patch)
treefd3e03e1c1328dcfc549a23e0bb6b9e769d670c3 /xen/arch/x86/hvm/emulate.c
parent95807bcae47efaf96888119b2a0b4b921ad737df (diff)
downloadxen-65f68374804151495b0e62ca9a32e8be5fd39454.tar.gz
xen-65f68374804151495b0e62ca9a32e8be5fd39454.tar.bz2
xen-65f68374804151495b0e62ca9a32e8be5fd39454.zip
x86 hvm: Clean up PIO fast path emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/emulate.c')
-rw-r--r--xen/arch/x86/hvm/emulate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c
index fe0fe7e108..18748e95eb 100644
--- a/xen/arch/x86/hvm/emulate.c
+++ b/xen/arch/x86/hvm/emulate.c
@@ -48,7 +48,7 @@ static void hvmtrace_io_assist(int is_mmio, ioreq_t *p)
trace_var(event, 0/*!cycles*/, size, buffer);
}
-int hvmemul_do_io(
+static int hvmemul_do_io(
int is_mmio, paddr_t addr, unsigned long *reps, int size,
paddr_t ram_gpa, int dir, int df, void *p_data)
{
@@ -142,6 +142,7 @@ int hvmemul_do_io(
curr->arch.hvm_vcpu.io_state =
(p_data == NULL) ? HVMIO_dispatched : HVMIO_awaiting_completion;
+ curr->arch.hvm_vcpu.io_size = size;
p->dir = dir;
p->data_is_ptr = value_is_ptr;
@@ -224,7 +225,7 @@ int hvmemul_do_io(
return X86EMUL_OKAY;
}
-static int hvmemul_do_pio(
+int hvmemul_do_pio(
unsigned long port, unsigned long *reps, int size,
paddr_t ram_gpa, int dir, int df, void *p_data)
{