summaryrefslogtreecommitdiff
path: root/arch/powerpc/kvm/e500_tlb.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2011-06-29 00:18:52 (GMT)
committerAvi Kivity <avi@redhat.com>2011-07-12 10:16:49 (GMT)
commit3cf658b605393d793ea52416c2306b86fbde9d9a (patch)
treeea852deef56e782ca62b9736323b7fa8ce833e1a /arch/powerpc/kvm/e500_tlb.c
parentb01c8b54a1a271c0fc4243845927fe1d250767a3 (diff)
downloadlinux-fsl-qoriq-3cf658b605393d793ea52416c2306b86fbde9d9a.tar.xz
KVM: PPC: Deliver program interrupts right away instead of queueing them
Doing so means that we don't have to save the flags anywhere and gets rid of the last reference to to_book3s(vcpu) in arch/powerpc/kvm/book3s.c. Doing so is OK because a program interrupt won't be generated at the same time as any other synchronous interrupt. If a program interrupt and an asynchronous interrupt (external or decrementer) are generated at the same time, the program interrupt will be delivered, which is correct because it has a higher priority, and then the asynchronous interrupt will be masked. We don't ever generate system reset or machine check interrupts to the guest, but if we did, then we would need to make sure they got delivered rather than the program interrupt. The current code would be wrong in this situation anyway since it would deliver the program interrupt as well as the reset/machine check interrupt. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/e500_tlb.c')
0 files changed, 0 insertions, 0 deletions