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

virt_whp: coconut-svsm self test with 2 procs hangs on ipi test #724

Open
chris-oo opened this issue Jan 24, 2025 · 2 comments
Open

virt_whp: coconut-svsm self test with 2 procs hangs on ipi test #724

chris-oo opened this issue Jan 24, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@chris-oo
Copy link
Member

Running coconut-svsm built with hyper-v support, the ipi self tests seem to hang. I suspect that something is broken with our start vp hypercall handling since openhcl does not use it in vtl2.

build the svsm with make test-in-hyperv and run with something like:

cargo run --target x86_64-pc-windows-msvc -- --hv --vtl2 --igvm ~/svsm/bin/coconut-test-hyperv.igvm --com3 console --com1 none --igvm-vtl2-relocation-type disable --late-map-vtl0-policy off --processors 2
@chris-oo
Copy link
Member Author

probably we're missing some active_vtl check in hypercall handling, because from inspect it looks like we started VTL0, but not VTL2:

    vtl2: {
        activity: {
            interrupt_shadow: false,
            mp_state: "halted",
 
    vtl0: {
        activity: {
            interrupt_shadow: false,
            mp_state: "running",

@chris-oo
Copy link
Member Author

actually on second glance, the vp start seems to work but then sending an ipi isn't? will need more debugging.

@chris-oo chris-oo changed the title virt_whp: vtl2 start vp hypercall doesn't seem to work correctly virt_whp: coconut-svsm self test with 2 procs hangs on ipi test Jan 24, 2025
@smalis-msft smalis-msft added the bug Something isn't working label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants