x86/guest: Introduce {get,set}_reg() infrastructure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Jan 2022 12:38:42 +0000 (13:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Jan 2022 12:38:42 +0000 (13:38 +0100)
commit20b00921f8a62b1b19d893dd468473161706e02d
tree52ac18b6db34b6bf13bc62bed0d792fd6216e5b6
parent8509519268ea6a467a97ca7891a0dca2bfe88cf7
x86/guest: Introduce {get,set}_reg() infrastructure

Various registers have per-guest-type or per-vendor locations or access
requirements.  To support their use from common code, provide accessors which
allow for per-guest-type behaviour.

For now, just infrastructure handling default cases and expectations.
Subsequent patches will start handling registers using this infrastructure.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 88d3ff7ab15da277a85b39735797293fb541c718
master date: 2022-01-20 16:32:11 +0000
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/pv/emulate.c
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/pv/domain.h