diff options
| author | Isaku Yamahata <[email protected]> | 2025-01-29 09:58:56 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2025-03-14 18:20:54 +0000 |
| commit | 6bfa6d8509ad71f26ceec1e2ab64efbe39c58c8d (patch) | |
| tree | d662e2cc281d9be1eac0c80b2b69009d1e2a666a /rust/helpers/workqueue.c | |
| parent | KVM: TDX: vcpu_run: save/restore host state(host kernel gs) (diff) | |
| download | kernel-6bfa6d8509ad71f26ceec1e2ab64efbe39c58c8d.tar.gz kernel-6bfa6d8509ad71f26ceec1e2ab64efbe39c58c8d.zip | |
KVM: TDX: restore host xsave state when exit from the guest TD
On exiting from the guest TD, xsave state is clobbered; restore it.
Do not use kvm_load_host_xsave_state(), as it relies on vcpu->arch
to find out whether other KVM_RUN code has loaded guest state into
XCR0/PKRU/XSS or not. In the case of TDX, the exit values are known
independent of the guest CR0 and CR4, and in fact the latter are not
available.
Signed-off-by: Isaku Yamahata <[email protected]>
Signed-off-by: Adrian Hunter <[email protected]>
Message-ID: <[email protected]>
[Rewrite to not use kvm_load_host_xsave_state. - Paolo]
Reviewed-by: Xiayao Li <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions
