Skip to contentSkip to conversation

ppc-for-4.1 queue 20190712

GIT PULL Applied David Gibson 2 participants 4 messages Jul 12, 2019

lore
Share & tools
lore
#0 lore raw

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(-)
#1 lore raw

[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.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/virtual/kvm/devices/xics.txt

Message-Id: <[email protected]>

---
 hw/intc/xics_kvm.c | 3 +++
 1 file changed, 3 insertions(+)
hw/intc/xics_kvm.c +3 -0
index 51433b19b0..2df1f3e92c 100644
@@ -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
#2 lore raw

[Qemu-devel] [PULL 1/2] pseries: Update SLOF firmware image

In reply to David Gibson

From: 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
index 180795a55b..0a17f3ec6d 100644
@@ -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
index 65db1a6e579839cfd05da7f71c246fa0251c2fc0..2def51471772b6091bc5dc19b3bb136dddd201b2 100644
GIT binary patch
roms/SLOF +1 -1
index a5b428e1c1..ba1ab360ee 160000
@@ -1 +1 @@
-Subproject commit a5b428e1c1eae703bdd62a3f527223c291ee3fdc
+Subproject commit ba1ab360eebe6338bb8d7d83a9220ccf7e213af3
Signature · 1 line
2.21.0
#3 lore raw
In reply to David Gibson
Quoted 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.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.

Quoted 6 lines

----------------------------------------------------------------
Alexey Kardashevskiy (1):
pseries: Update SLOF firmware image

Greg 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