x86: adjustments to guest handle treatment
authorJan Beulich <jbeulich@suse.com>
Thu, 7 May 2020 11:15:13 +0000 (13:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 May 2020 11:15:13 +0000 (13:15 +0200)
commitdd5520f9df05b84116ad57f16fff45323042cc63
tree38d4c9bacea87ceffaf9ec9c41d46e087e91a680
parent8a6b1665d987d043c12dc723d758a7d2ca765264
x86: adjustments to guest handle treatment

First of all avoid excessive conversions. copy_{from,to}_guest(), for
example, work fine with all of XEN_GUEST_HANDLE{,_64,_PARAM}().

Further
- do_physdev_op_compat() didn't use the param form for its parameter,
- {hap,shadow}_track_dirty_vram() wrongly used the param form,
- compat processor Px logic failed to check compatibility of native and
  compat structures not further converted.

As this eliminates all users of guest_handle_from_param() and as there's
no real need to allow for conversions in both directions, drop the
macros as well.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
17 files changed:
xen/arch/x86/compat.c
xen/arch/x86/cpu/microcode/core.c
xen/arch/x86/mm.c
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/oprofile/backtrace.c
xen/arch/x86/platform_hypercall.c
xen/arch/x86/x86_64/compat.c
xen/arch/x86/x86_64/cpu_idle.c
xen/arch/x86/x86_64/cpufreq.c
xen/drivers/acpi/pmstat.c
xen/include/asm-arm/guest_access.h
xen/include/asm-x86/guest_access.h
xen/include/asm-x86/hap.h
xen/include/asm-x86/microcode.h
xen/include/asm-x86/shadow.h
xen/include/xen/acpi.h