ppc-for-4.1 queue 20190712
The following changes since commit 9411db8f37c64b9adb3e4b393c623a5760bcb847:
Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-07-11 11:58:14 +0100)
are available in the Git repository at:
git://github.com/dgibson/qemu.git tags/ppc-for-4.1-20190712
for you to fetch changes up to 38298611d5a87d2739d0a21d5f9e47ba43570c22:
xics/kvm: Always set the MASKED bit if interrupt is masked (2019-07-12 15:50:00 +1000)
----------------------------------------------------------------
ppc patch queue for 2019-07-12
First 4.1 hard freeze pull request. Not much here, just a bug fix for the XICS interrupt controller and a SLOF firmware update to fix a bug with IP discovery when there are multiple NICs.
----------------------------------------------------------------
Alexey Kardashevskiy (1):
pseries: Update SLOF firmware image
Greg Kurz (1):
xics/kvm: Always set the MASKED bit if interrupt is masked
hw/intc/xics_kvm.c | 3 +++ pc-bios/README | 2 +- pc-bios/slof.bin | Bin 926392 -> 926432 bytes roms/SLOF | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-)
[Qemu-devel] [PULL 2/2] xics/kvm: Always set the MASKED bit if interrupt is masked
From: Greg Kurz <[email protected]>
The ics_set_kvm_state_one() function is called either to restore the state of an interrupt source during migration or to set the interrupt source to a default state during reset.
Since always, ie. 2013, the code only sets the MASKED bit if the 'current priority' and the 'saved priority' are different. This is likely true when restoring an interrupt that had been previously masked with the ibm,int-off RTAS call. However this is always false in the case of reset since both 'current priority' and 'saved priority' are equal to 0xff, and the MASKED bit is never set.
The legacy KVM XICS device gets away with that because it ends updating its internal structure the same way, whether the MASKED bit is set or the priority is 0xff.
The XICS-on-XIVE device for POWER9 is different. It sticks to the KVM documentation [1] and _really_ relies on the MASKED bit to correctly set. If not, it will configure the interrupt source in the XIVE HW, even though the guest hasn't configured the interrupt yet. This disturbs the complex logic implemented in XICS-on-XIVE and may result in the loss of subsequent queued events.
Always set the MASKED bit if interrupt is masked as expected by the KVM XICS-on-XIVE device. This has no impact on the legacy KVM XICS.
Message-Id: <[email protected]>
--- hw/intc/xics_kvm.c | 3 +++ 1 file changed, 3 insertions(+)
hw/intc/xics_kvm.c +3 -0
@@ -257,6 +257,9 @@ int ics_set_kvm_state_one(ICSState *ics, int srcno, Error **errp) << KVM_XICS_PRIORITY_SHIFT;if (irq->priority != irq->saved_priority) {assert (irq->priority ==0xff ); + } + +if (irq->priority ==0xff ) { state |=KVM_XICS_MASKED ; }
Signature · 1 line
2.21.0
[Qemu-devel] [PULL 1/2] pseries: Update SLOF firmware image
In reply to David GibsonFrom: Alexey Kardashevskiy <[email protected]>
This only has a fix for ipv4-after-ipv6 booting problem.
--- pc-bios/README | 2 +- pc-bios/slof.bin | Bin 926392 -> 926432 bytes roms/SLOF | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)
pc-bios/README +1 -1
@@ -17,7 +17,7 @@ - SLOF (Slimline Open Firmware) is a free IEEE 1275 Open Firmware implementation for certain IBM POWER hardware. The sources are at https://github.com/aik/SLOF, and the image currently in qemu is - built from git tag qemu-slof-20190114. + built from git tag qemu-slof-20190703. - sgabios (the Serial Graphics Adapter option ROM) provides a means for legacy x86 software to communicate with an attached serial console as
pc-bios/slof.bin binary +0 -0
roms/SLOF +1 -1
@@ -1 +1 @@ -Subproject commit a5b428e1c1eae703bdd62a3f527223c291ee3fdc +Subproject commit ba1ab360eebe6338bb8d7d83a9220ccf7e213af3
Signature · 1 line
2.21.0
Peter Maydell
AppliedQuoted 20 lines · David Gibson
The following changes since commit
9411db8f37c64b9adb3e4b393c623a5760bcb847:Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-07-11 11:58:14 +0100)
are available in the Git repository at:
git://github.com/dgibson/qemu.gittags/ppc-for-4.1-20190712for you to fetch changes up to
38298611d5a87d2739d0a21d5f9e47ba43570c22:xics/kvm: Always set the MASKED bit if interrupt is masked (2019-07-12 15:50:00 +1000)
----------------------------------------------------------------
ppc patch queue for 2019-07-12First 4.1 hard freeze pull request. Not much here, just a bug fix for the XICS interrupt controller and a SLOF firmware update to fix a bug with IP discovery when there are multiple NICs.
Quoted 6 lines
----------------------------------------------------------------
Alexey Kardashevskiy (1):
pseries: Update SLOF firmware imageGreg Kurz (1):
xics/kvm: Always set the MASKED bit if interrupt is masked
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.
-- PMM