Nested KVM does not handle `H_ENTER_NESTED` errors

Open
#464 0 comments 0 reactions 1 assignee View on GitHub

@iamjpn is already working on this.

Since Jun 1, 2023.

Assessment

This issue has not been assessed yet.

Description

bug

The H_ENTER_NESTED hcall either returns an error OR the trap number in r3.
The (trap | error) is propagated back to kvmhv_p9_guest_entry() and is then used by kvmppc_handle_nested_exit().
There there is a switch on what is expected to be the trap, but if it actually is an error it will hit the default case.
The default case just returns RESUME_HOST and if there was an error it is swallowed up.

Dominant language
No language data
Stars
14
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxppc/issues

All issues in linuxppc/issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.