diff options
author | Alexander Graf <agraf@suse.de> | 2014-07-31 10:21:59 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-07-31 10:23:46 +0200 |
commit | 8e6afa36e754be84b468d7df9e5aa71cf4003f3b (patch) | |
tree | 2f41e8d6c34ee35306c1f65bfd87e8960fe43a60 /arch/powerpc/include | |
parent | 29577fc00ba40a89fc824f030bcc80c583259346 (diff) | |
download | talos-op-linux-8e6afa36e754be84b468d7df9e5aa71cf4003f3b.tar.gz talos-op-linux-8e6afa36e754be84b468d7df9e5aa71cf4003f3b.zip |
KVM: PPC: PR: Handle FSCR feature deselects
We handle FSCR feature bits (well, TAR only really today) lazily when the guest
starts using them. So when a guest activates the bit and later uses that feature
we enable it for real in hardware.
However, when the guest stops using that bit we don't stop setting it in
hardware. That means we can potentially lose a trap that the guest expects to
happen because it thinks a feature is not active.
This patch adds support to drop TAR when then guest turns it off in FSCR. While
at it it also restricts FSCR access to 64bit systems - 32bit ones don't have it.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/kvm_book3s.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_book3s.h b/arch/powerpc/include/asm/kvm_book3s.h index 61667913ec98..6acf0c2a0f99 100644 --- a/arch/powerpc/include/asm/kvm_book3s.h +++ b/arch/powerpc/include/asm/kvm_book3s.h @@ -182,6 +182,7 @@ extern long kvmppc_hv_get_dirty_log(struct kvm *kvm, struct kvm_memory_slot *memslot, unsigned long *map); extern void kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr, unsigned long mask); +extern void kvmppc_set_fscr(struct kvm_vcpu *vcpu, u64 fscr); extern void kvmppc_entry_trampoline(void); extern void kvmppc_hv_entry_trampoline(void); |