x86/hvm: Drop .is_singlestep_supported() callback
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 13 Jan 2022 18:37:13 +0000 (18:37 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 20 Jan 2022 13:09:57 +0000 (13:09 +0000)
commit4e1df69cc9f51b2e017af1da3ed5b45917642115
tree6afab4d079b468ae03dd68054f48cc903b7f8ef0
parent9b7cdb83fccf59912e56714dd79dbfab57518a65
x86/hvm: Drop .is_singlestep_supported() callback

There is absolutely no need for a function pointer call here.

Drop the hook, introduce a singlestep_supported boolean, and configure it in
start_vmx() like all other optional functionality.

No functional change, but rather more efficient logic.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/include/asm/hvm/hvm.h