-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
virt_mshv_vtl: Scope startvp handling to CVMs #726
Conversation
@@ -247,6 +247,13 @@ mod private { | |||
dev: &impl CpuIo, | |||
) -> Result<bool, UhRunVpError>; | |||
|
|||
fn handle_vp_start_enable_vtl_wake( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up with this instead of a generic extended wake handler because WakeReason is currently at pub(crate) scope. If we prefer this to be a generic thing instead, happy to make some changes.
vm/hv1/hv1_emulator/src/cpuid.rs
Outdated
@@ -42,10 +42,8 @@ pub fn hv_cpuid_leaves( | |||
.with_access_apic_msrs(true) | |||
.with_access_vp_runtime_msr(true) | |||
.with_access_partition_reference_tsc(true) | |||
.with_start_virtual_processor(true) | |||
.with_start_virtual_processor(hardware_isolated) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will disable StartVp support for WHP partitions using this emulator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah oops
8a29e28
to
7b2d374
Compare
Refactoring work so that the startvp hypercall is not handled by OpenHCL for non-CVMs. Will help to keep future CVM-only work isolated to the CVM backings.
Tested: