]> xenbits.xensource.com Git - xen.git/commit
x86/guest: Introduce {get,set}_reg() infrastructure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Jan 2022 12:52:07 +0000 (13:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Jan 2022 12:52:07 +0000 (13:52 +0100)
commitc45c2c2e09295ef3008a79d78673af0819ff4e4f
tree89cf33396f9671aae50a98a631a1cc071767d8f9
parent0f88870898ae82aa9e7d0e6d1391e598a4aa7af7
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