linuxppc / linuxppc/issues

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.

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

Description

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.

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.