crosvm/hypervisor/src
Daniel Verkamp 970811a704 hypervisor: x86: remove apic_base and interrupt_bitmap from Sregs
These are only used in KVM, not the other x86 hypervisors, and they
don't really fit into the same category as the rest of Sregs. The
apic_base can be set via set_msrs(), and the interrupt_bitmap is
part of the irqchip state.

To enable this removal, we change the KVM set_sregs() call to retrieve
the current state and use the existing apic_base and interrupt_bitmap.

BUG=b:237095693
TEST=Boot x86-64 kernel on KVM

Change-Id: I275eec83b74f1c364b7a543882f3ac5960201143
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3728988
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
2022-07-07 23:24:09 +00:00
..
haxm hypervisor: x86: remove apic_base and interrupt_bitmap from Sregs 2022-07-07 23:24:09 +00:00
kvm hypervisor: x86: remove apic_base and interrupt_bitmap from Sregs 2022-07-07 23:24:09 +00:00
whpx hypervisor: x86: remove apic_base and interrupt_bitmap from Sregs 2022-07-07 23:24:09 +00:00
aarch64.rs arch: provide one vcpu_init per vcpu 2022-06-29 18:14:49 +00:00
caps.rs x86_64: add TSC leaf synthesis. 2022-06-28 02:23:55 +00:00
haxm.rs haxm: Fix compilation issues with cpuid changes 2022-06-30 21:03:40 +00:00
lib.rs crosvm: add serde to arg types 2022-06-30 17:47:59 +00:00
whpx.rs hypervisor: fix capability confusion for TSC leaves. 2022-06-29 17:56:46 +00:00
x86_64.rs hypervisor: x86: remove apic_base and interrupt_bitmap from Sregs 2022-07-07 23:24:09 +00:00