hypervisor: provide a generic MpState structure

It is however only used for KVM right now because MSHV does not need it
yet.

Nonetheless a stub MSHV constructor should be there and get/set
functions should be implemented for MSHV.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2022-07-14 15:17:07 +00:00
committed by Liu Wei
parent 02866fccb0
commit 9810ed4496
5 changed files with 56 additions and 21 deletions
-2
View File
@@ -66,8 +66,6 @@ impl fmt::Display for VcpuMshvState {
}
}
pub struct MpState {}
impl SegmentRegisterOps for SegmentRegister {
fn segment_type(&self) -> u8 {
self.type_