]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Allow DTL to be set to address 0, length 0
authorPaul Mackerras <paulus@samba.org>
Mon, 15 Oct 2012 01:18:37 +0000 (01:18 +0000)
committerAlexander Graf <agraf@suse.de>
Tue, 30 Oct 2012 09:54:58 +0000 (10:54 +0100)
commitcfc7934b919c167c39b9b9597dbdd587a796f77f
treed2b200398f27d85c4b4b9e2fff24a20f8d5334a9
parent350f3be88cf41ef51d4af535562ae4375ffed95d
KVM: PPC: Book3S HV: Allow DTL to be set to address 0, length 0

Commit 83fc1b7cb4 ("KVM: PPC: Book3S HV: Provide a way for userspace
to get/set per-vCPU areas") includes a check on the length of the
dispatch trace log (DTL) to make sure the buffer is at least one entry
long.  This is appropriate when registering a buffer, but the
interface also allows for any existing buffer to be unregistered by
specifying a zero address.  In this case the length check is not
appropriate.  This makes the check conditional on the address being
non-zero.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv.c