mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
Turn KvmVcpuRegister into an enum that supports any kvm_regs entry (not just kvm_regs::regs i.e. user_pt_regs). Improve the abstraction provided by KvmVcpuRegister through the 2-step conversion "VcpuRegAArch64 -> KvmVcpuRegister -> u8", which allows more flexibility when KVM doesn't provide 1-to-1 mappings (CCISDR, SVE, ...) and when other types (e.g. gdbstub) need to be mapped to KVM_SET_ONE_REG values. Introduce the firmware pseudo-register type as a KvmVcpuRegister variant and use it for KVM_ARM_PSCI_VERSION. BUG=b:222222882 BUG=chromium:1141812 TEST=tools/dev_container ./tools/run_tests Change-Id: Id11c427fc48f4b6bef9df607eeb73928aa7f5da7 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3785463 Reviewed-by: Takaya Saeki <takayas@chromium.org> Auto-Submit: Pierre-Clément Tosi <ptosi@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: Pierre-Clément Tosi <ptosi@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |