x86/HVM: drop hvm_emulate_one_no_write()
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 12:54:41 +0000 (13:54 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 12:54:41 +0000 (13:54 +0100)
It was pointlessly non-static, and being static and a simple wrapper it
can as well be folded into its single caller.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/emulate.c
xen/include/asm-x86/hvm/emulate.h

index f4c57475f3aec59c22e46b137c838da2704e6a45..ebd59edb63ec6cf64c51c14a0e5eae465b49aae3 100644 (file)
@@ -1776,12 +1776,6 @@ int hvm_emulate_one(
     return _hvm_emulate_one(hvmemul_ctxt, &hvm_emulate_ops);
 }
 
-int hvm_emulate_one_no_write(
-    struct hvm_emulate_ctxt *hvmemul_ctxt)
-{
-    return _hvm_emulate_one(hvmemul_ctxt, &hvm_emulate_ops_no_write);
-}
-
 int hvm_emulate_one_mmio(unsigned long mfn, unsigned long gla)
 {
     static const struct x86_emulate_ops hvm_intercept_ops_mmcfg = {
@@ -1841,7 +1835,7 @@ void hvm_emulate_one_vm_event(enum emul_kind kind, unsigned int trapnr,
     switch ( kind )
     {
     case EMUL_KIND_NOWRITE:
-        rc = hvm_emulate_one_no_write(&ctx);
+        rc = _hvm_emulate_one(&ctx, &hvm_emulate_ops_no_write);
         break;
     case EMUL_KIND_SET_CONTEXT_INSN: {
         struct vcpu *curr = current;
index d64d83468eb996e0b1a09ea02e6830023c185df4..68a95e452761b7f3ebdc8ed015d062a33ff46d73 100644 (file)
@@ -43,8 +43,6 @@ enum emul_kind {
 
 int hvm_emulate_one(
     struct hvm_emulate_ctxt *hvmemul_ctxt);
-int hvm_emulate_one_no_write(
-    struct hvm_emulate_ctxt *hvmemul_ctxt);
 void hvm_emulate_one_vm_event(enum emul_kind kind,
     unsigned int trapnr,
     unsigned int errcode);