提交 fad93fe1 编写于 作者: A Alexander Graf 提交者: Avi Kivity

KVM: PPC: Add PV guest scratch registers

While running in hooked code we need to store register contents out because
we must not clobber any registers.

So let's add some fields to the shared page we can just happily write to.
Signed-off-by: NAlexander Graf <agraf@suse.de>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 5c6cedf4
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#include <linux/of.h> #include <linux/of.h>
struct kvm_vcpu_arch_shared { struct kvm_vcpu_arch_shared {
__u64 scratch1;
__u64 scratch2;
__u64 scratch3;
__u64 critical; /* Guest may not get interrupts if == r1 */ __u64 critical; /* Guest may not get interrupts if == r1 */
__u64 sprg0; __u64 sprg0;
__u64 sprg1; __u64 sprg1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册