hypervisor x86: provide a generic LapicState structure

This requires making get/set_lapic_reg part of the type.

For the moment we cannot provide a default variant for the new type,
because picking one will be wrong for the other hypervisor, so I just
drop the test cases that requires LapicState::default().

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2022-07-18 15:47:51 +00:00
committed by Liu Wei
parent d461daa7fa
commit 05e5106b9b
10 changed files with 132 additions and 86 deletions

1
Cargo.lock generated
View File

@@ -342,6 +342,7 @@ name = "hypervisor"
version = "0.1.0"
dependencies = [
"anyhow",
"byteorder",
"env_logger",
"epoll",
"iced-x86",