From: Shannon Zhao Date: Thu, 31 May 2018 13:50:51 +0000 (+0100) Subject: arm_gicv3_kvm: increase clroffset accordingly X-Git-Tag: v2.11.2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e55c6b67955b926f4113211c0d1f6cab0e6bb4f9;p=thirdparty%2Fqemu.git arm_gicv3_kvm: increase clroffset accordingly It forgot to increase clroffset during the loop. So it only clear the first 4 bytes. Fixes: 367b9f527becdd20ddf116e17a3c0c2bbc486920 Cc: qemu-stable@nongnu.org Signed-off-by: Shannon Zhao Reviewed-by: Eric Auger Message-id: 1527047633-12368-1-git-send-email-zhaoshenglong@huawei.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell (cherry picked from commit 34ffacae085914fce54590ea84bae9c6ad95e2a4) Signed-off-by: Michael Roth --- diff --git a/hw/intc/arm_gicv3_kvm.c b/hw/intc/arm_gicv3_kvm.c index 481fe5405a6..d01deba632c 100644 --- a/hw/intc/arm_gicv3_kvm.c +++ b/hw/intc/arm_gicv3_kvm.c @@ -243,6 +243,7 @@ static void kvm_dist_putbmp(GICv3State *s, uint32_t offset, if (clroffset != 0) { reg = 0; kvm_gicd_access(s, clroffset, ®, true); + clroffset += 4; } reg = *gic_bmp_ptr32(bmp, irq); kvm_gicd_access(s, offset, ®, true);