diff options
author | Eric Farman <[email protected]> | 2024-02-20 22:12:10 +0100 |
---|---|---|
committer | Heiko Carstens <[email protected]> | 2024-02-22 16:06:56 +0100 |
commit | 01be7f53dfc29e0a362f3d05e5ab2c8dfcc171c8 (patch) | |
tree | 50621901f71ea37531847dee2c7c4418381f7679 /scripts/generate_rust_analyzer.py | |
parent | 4a5993287467d2d0401503256dc9d2690c7f2020 (diff) |
KVM: s390: fix access register usage in ioctls
The routine ar_translation() can be reached by both the instruction
intercept path (where the access registers had been loaded with the
guest register contents), and the MEM_OP ioctls (which hadn't).
Since this routine saves the current registers to vcpu->run,
this routine erroneously saves host registers into the guest space.
Introduce a boolean in the kvm_vcpu_arch struct to indicate whether
the registers contain guest contents. If they do (the instruction
intercept path), the save can be performed and the AR translation
is done just as it is today. If they don't (the MEM_OP path), the
AR can be read from vcpu->run without stashing the current contents.
Reviewed-by: Heiko Carstens <[email protected]>
Reviewed-by: Nina Schoetterl-Glausch <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Signed-off-by: Eric Farman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions