]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: clear the pfault queue if user space sets the invalid token
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Thu, 9 Oct 2014 13:01:38 +0000 (15:01 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 23 Jan 2015 12:25:36 +0000 (13:25 +0100)
commit498fb71c900152e995668ff588a7a9e9f91f65ad
treeec495e61c2574c9bb76c21840a9c15b50ddec018
parent45d27081537afaedf21cd3b2628f1e59685f22ce
KVM: s390: clear the pfault queue if user space sets the invalid token

We need a way to clear the async pfault queue from user space (e.g.
for resets and SIGP SET ARCHITECTURE).

This patch simply clears the queue as soon as user space sets the
invalid pfault token. The definition of the invalid token is moved
to uapi.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/include/uapi/asm/kvm.h
arch/s390/kvm/kvm-s390.c