mirror of https://github.com/xemu-project/xemu.git
target/arm: Restrict KVM-specific fields from ArchCPU
These fields shouldn't be accessed when KVM is not available. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230405160454.97436-8-philmd@linaro.org>
This commit is contained in:
parent
94522562f6
commit
cf43b5b69c
|
@ -961,6 +961,7 @@ struct ArchCPU {
|
||||||
*/
|
*/
|
||||||
uint32_t kvm_target;
|
uint32_t kvm_target;
|
||||||
|
|
||||||
|
#ifdef CONFIG_KVM
|
||||||
/* KVM init features for this CPU */
|
/* KVM init features for this CPU */
|
||||||
uint32_t kvm_init_features[7];
|
uint32_t kvm_init_features[7];
|
||||||
|
|
||||||
|
@ -973,6 +974,7 @@ struct ArchCPU {
|
||||||
|
|
||||||
/* KVM steal time */
|
/* KVM steal time */
|
||||||
OnOffAuto kvm_steal_time;
|
OnOffAuto kvm_steal_time;
|
||||||
|
#endif /* CONFIG_KVM */
|
||||||
|
|
||||||
/* Uniprocessor system with MP extensions */
|
/* Uniprocessor system with MP extensions */
|
||||||
bool mp_is_up;
|
bool mp_is_up;
|
||||||
|
|
Loading…
Reference in New Issue