From 3fc457991f48d8c1c6e9461884fe06b35fdf4669 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Tue, 18 Sep 2007 11:26:38 +0200 Subject: [PATCH] --- yaml --- r: 80625 b: refs/heads/master c: a7ddce3afc8326870b9e5e02fa41e028bffb10a5 h: refs/heads/master i: 80623: ac5f61997eedae3c9340fc30fa9255c0092e425f v: v3 --- [refs] | 2 +- trunk/drivers/kvm/x86_emulate.c | 39 --------------------------------- 2 files changed, 1 insertion(+), 40 deletions(-) diff --git a/[refs] b/[refs] index b23cedfef894..dde121a68411 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7aa81cc04781b5b99a0647ec04533599d78cd219 +refs/heads/master: a7ddce3afc8326870b9e5e02fa41e028bffb10a5 diff --git a/trunk/drivers/kvm/x86_emulate.c b/trunk/drivers/kvm/x86_emulate.c index f12bc2c74040..9ea82f84743e 100644 --- a/trunk/drivers/kvm/x86_emulate.c +++ b/trunk/drivers/kvm/x86_emulate.c @@ -1639,42 +1639,3 @@ x86_emulate_memop(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops) DPRINTF("Cannot emulate %02x\n", b); return -1; } - -#ifdef __XEN__ - -#include -#include - -int -x86_emulate_read_std(unsigned long addr, - unsigned long *val, - unsigned int bytes, struct x86_emulate_ctxt *ctxt) -{ - unsigned int rc; - - *val = 0; - - if ((rc = copy_from_user((void *)val, (void *)addr, bytes)) != 0) { - propagate_page_fault(addr + bytes - rc, 0); /* read fault */ - return X86EMUL_PROPAGATE_FAULT; - } - - return X86EMUL_CONTINUE; -} - -int -x86_emulate_write_std(unsigned long addr, - unsigned long val, - unsigned int bytes, struct x86_emulate_ctxt *ctxt) -{ - unsigned int rc; - - if ((rc = copy_to_user((void *)addr, (void *)&val, bytes)) != 0) { - propagate_page_fault(addr + bytes - rc, PGERR_write_access); - return X86EMUL_PROPAGATE_FAULT; - } - - return X86EMUL_CONTINUE; -} - -#endif