diff options
author | Alexander Graf <agraf@suse.de> | 2010-08-03 04:39:35 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:52:12 -0400 |
commit | cbe487fac7fc016dbabbcbe83f11384e1803a56d (patch) | |
tree | 7144ae2f0b5a920aba061c101b9a0ac8305d5e31 /arch/powerpc/kernel/asm-offsets.c | |
parent | df1bfa25d81f9451715ccbbb67551e0f792ceec8 (diff) |
KVM: PPC: Add mtsrin PV code
This is the guest side of the mtsr acceleration. Using this a guest can now
call mtsrin with almost no overhead as long as it ensures that it only uses
it with (MSR_IR|MSR_DR) == 0. Linux does that, so we're good.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 6d92b4e13ebf..7f0d6fcc28a3 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -478,6 +478,7 @@ int main(void) | |||
478 | DEFINE(KVM_MAGIC_MSR, offsetof(struct kvm_vcpu_arch_shared, msr)); | 478 | DEFINE(KVM_MAGIC_MSR, offsetof(struct kvm_vcpu_arch_shared, msr)); |
479 | DEFINE(KVM_MAGIC_CRITICAL, offsetof(struct kvm_vcpu_arch_shared, | 479 | DEFINE(KVM_MAGIC_CRITICAL, offsetof(struct kvm_vcpu_arch_shared, |
480 | critical)); | 480 | critical)); |
481 | DEFINE(KVM_MAGIC_SR, offsetof(struct kvm_vcpu_arch_shared, sr)); | ||
481 | #endif | 482 | #endif |
482 | 483 | ||
483 | #ifdef CONFIG_44x | 484 | #ifdef CONFIG_44x |