Skip to content
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

kernel: permit the use of IPIs prior to guest entry #628

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

msft-jlange
Copy link
Collaborator

Until KVM supports separate interrupts per privilege context (VMPL, TDP L2, etc.), interrupt state must be exclusively associated with the guest OS, not with the SVSM. However, prior to the guest being started on any processor, there is no reason not to make use of interrupts in the SVSM because there is no ambiguity. This change permits the use of IPIs up to the point in time that all processors are ready to begin the request loop on all CPUs, at which point IPI usage is suppressed and interrupt state becomes exclusive to the guest OS.

Until KVM supports separate interrupts per privilege context (VMPL, TDP
L2, etc.), interrupt state must be exclusively associated with the guest
OS, not with the SVSM.  However, prior to the guest being started on any
processor, there is no reason not to make use of interrupts in the SVSM
because there is no ambiguity.  This change permits the use of IPIs up
to the point in time that all processors are ready to begin the request
loop on all CPUs, at which point IPI usage is suppressed and interrupt
state becomes exclusive to the guest OS.

Signed-off-by: Jon Lange <jlange@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant