]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Add PV guest critical sections
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:47:49 +0000 (14:47 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:46 +0000 (10:50 +0200)
commit7193ac1274246a42686794527272b1e9bcd47f4c
tree658f90bfde8dfef9c53675d5b114d9761869822c
parent761b84ee0e626539f0beb01fdc555dab5e7b284c
KVM: PPC: Add PV guest critical sections

When running in hooked code we need a way to disable interrupts without
clobbering any interrupts or exiting out to the hypervisor.

To achieve this, we have an additional critical field in the shared page. If
that field is equal to the r1 register of the guest, it tells the hypervisor
that we're in such a critical section and thus may not receive any interrupts.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_para.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/booke.c