x86/hvm: Improve memory_op hypercall dispatching
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 13 Feb 2017 11:49:24 +0000 (11:49 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 14 Feb 2017 14:34:26 +0000 (14:34 +0000)
commit7797a2af946115496c9306f8fc142477352fdf81
tree954ae2cdc11449dde6888f20a886d3ba8a72026d
parente637e8d12e5219cd3cdaeadab38f94460cea2748
x86/hvm: Improve memory_op hypercall dispatching

hvm_memory_op() and hvm_memory_op_compat32() are almost identical, but there
is no need to have two functions instantiated at the end of different function
pointers.

Combine the two into single hvm_memory_op() which dispatches to
{do,compat}_memory_op() based on the hcall_64bit setting.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hypercall.c