]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: ioeventfd: ignore leftmost bits
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Mon, 9 Dec 2013 17:30:01 +0000 (18:30 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 11 Dec 2013 18:05:41 +0000 (19:05 +0100)
commitb5957e28c78468db7f6c9e995e0f003825e9aa58
tree35dcfbab1107a734ebd58ffd1ff5000e7c804965
parent06199b6080cc0c452f6fc3670fc4128bdccc8c90
KVM: s390: ioeventfd: ignore leftmost bits

The diagnose 500 subcode 3 contains the 32 bit subchannel id in bits 32-63
(counting from the left). As for other I/O instructions, bits 0-31 should be
ignored and thus not be passed to kvm_io_bus_write_cookie().

This fixes a bug where the guest passed non-zero bits 0-31 which the
host tried to interpret, leading to ioeventfd notification failures.

Cc: stable@vger.kernel.org
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
arch/s390/kvm/diag.c