Skip to contentSkip to conversation

s390x patches for -rc0

GIT PULL Applied Cornelia Huck 2 participants 6 messages Jul 9, 2019

lore
Share & tools
lore
#0 lore raw

The following changes since commit 3a1acf5d47295d22ffdae0982a2fd808b802a7da:

Merge remote-tracking branch 'remotes/ehabkost/tags/machine-next-pull-request' into staging (2019-07-08 09:46:19 +0100)

are available in the Git repository at:

https://github.com/cohuck/qemu tags/s390x-20190709

for you to fetch changes up to 92b9afe45e10edd8eaed6329366201c2165a8065:

s390x/tcg: move fallthrough annotation (2019-07-09 10:37:44 +0200)

----------------------------------------------------------------
Fixes in cpu models, tcg, and vfio-ccw.

----------------------------------------------------------------

Alex Williamson (1):
vfio-ccw: Test vfio_set_irq_signaling() return value

Christian Borntraeger (1):
s390: cpumodel: fix description for the new vector facility

Cornelia Huck (1):
s390x/tcg: move fallthrough annotation

Pierre Morel (1):
s390x/cpumodel: Set up CPU model for AQIC interception

 hw/vfio/ccw.c                       | 5 ++---
 target/s390x/cpu_features_def.inc.h | 3 ++-
 target/s390x/cpu_models.c           | 1 +
 target/s390x/gen-features.c         | 1 +
 target/s390x/translate_vx.inc.c     | 2 +-
 5 files changed, 7 insertions(+), 5 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

[Qemu-devel] [PULL for-4.1 2/4] s390x/cpumodel: Set up CPU model for AQIC interception

From: Pierre Morel <[email protected]>

Let's add support for the AP-Queue interruption facility to the CPU model.

The S390_FEAT_AP_QUEUE_INTERRUPT_CONTROL, CPU facility indicates whether the PQAP instruction with the AQIC command is available to the guest.
This feature will be enabled only if the AP instructions are available on the linux host and AQIC facility is installed on the host.

This feature must be turned on from userspace to intercept AP instructions on the KVM guest. The QEMU command line to turn this feature on looks something like this:

    qemu-system-s390x ... -cpu xxx,apqi=on ...
or
    ... -cpu host

Right now AP pass-through devices do not support migration,
which means that we do not have to take care of migrating
the interrupt data:
virsh migrate apguest --live qemu+ssh://[email protected]/system
error: Requested operation is not valid: domain has assigned non-USB host devices

Message-Id: <[email protected]>

---
 target/s390x/cpu_features_def.inc.h | 1 +
 target/s390x/cpu_models.c           | 1 +
 target/s390x/gen-features.c         | 1 +
 3 files changed, 3 insertions(+)
target/s390x/cpu_features_def.inc.h +1 -0
index c20c780f2ea7..ef190e2fc783 100644
@@ -77,6 +77,7 @@ DEF_FEAT(SEMAPHORE_ASSIST, "sema", STFL, 59, "Semaphore-assist facility")
 DEF_FEAT(TIME_SLICE_INSTRUMENTATION, "tsi", STFL, 60, "Time-slice Instrumentation facility")
 DEF_FEAT(MISC_INSTRUCTION_EXT3, "minste3", STFL, 61, "Miscellaneous-Instruction-Extensions Facility 3")
 DEF_FEAT(RUNTIME_INSTRUMENTATION, "ri", STFL, 64, "CPU runtime-instrumentation facility")
+DEF_FEAT(AP_QUEUE_INTERRUPT_CONTROL, "apqi", STFL, 65, "AP-Queue interruption facility")
 DEF_FEAT(ZPCI, "zpci", STFL, 69, "z/PCI facility")
 DEF_FEAT(ADAPTER_EVENT_NOTIFICATION, "aen", STFL, 71, "General-purpose-adapter-event-notification facility")
 DEF_FEAT(ADAPTER_INT_SUPPRESSION, "ais", STFL, 72, "General-purpose-adapter-interruption-suppression facility")
target/s390x/cpu_models.c +1 -0
index 2cb09c078055..1d16d7d5e794 100644
@@ -818,6 +818,7 @@ static void check_consistency(const S390CPUModel *model)
         { S390_FEAT_PTFF_QTOUE, S390_FEAT_MULTIPLE_EPOCH },
         { S390_FEAT_PTFF_STOE, S390_FEAT_MULTIPLE_EPOCH },
         { S390_FEAT_PTFF_STOUE, S390_FEAT_MULTIPLE_EPOCH },
+        { S390_FEAT_AP_QUEUE_INTERRUPT_CONTROL, S390_FEAT_AP },
     };
     int i;
 
target/s390x/gen-features.c +1 -0
index af06be3e3b98..9f216219ff53 100644
@@ -519,6 +519,7 @@ static uint16_t full_GEN12_GA1[] = {
     S390_FEAT_EDAT_2,
     S390_FEAT_SIDE_EFFECT_ACCESS_ESOP2,
     S390_FEAT_AP_QUERY_CONFIG_INFO,
+    S390_FEAT_AP_QUEUE_INTERRUPT_CONTROL,
     S390_FEAT_AP_FACILITIES_TEST,
     S390_FEAT_AP,
 };
Signature · 1 line
2.20.1
#2 lore raw

[Qemu-devel] [PULL for-4.1 4/4] s390x/tcg: move fallthrough annotation

In reply to Cornelia Huck

...so that the compiler properly recognizes it.

Fixes f180da83c039 ("s390x/tcg: Implement VECTOR LOAD LOGICAL ELEMENT AND ZERO")

Message-Id: <[email protected]>

---
 target/s390x/translate_vx.inc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/translate_vx.inc.c +1 -1
index 7b1d31cba5cf..41d5cf869f94 100644
@@ -577,8 +577,8 @@ static DisasJumpType op_vllez(DisasContext *s, DisasOps *o)
             enr = 0;
             break;
         }
-    default:
         /* fallthrough */
+    default:
         gen_program_exception(s, PGM_SPECIFICATION);
         return DISAS_NORETURN;
     }
Signature · 1 line
2.20.1
#3 lore raw

[Qemu-devel] [PULL for-4.1 3/4] s390: cpumodel: fix description for the new vector facility

In reply to Cornelia Huck

From: Christian Borntraeger <[email protected]>

The new facility is called "Vector-Packed-Decimal-Enhancement Facility" and not "Vector BCD enhancements facility 1". As the shortname might have already found its way into some backports, let's keep vxbeh.

Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")

Message-Id: <[email protected]>

---
 target/s390x/cpu_features_def.inc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_features_def.inc.h +1 -1
index ef190e2fc783..3118a9f89228 100644
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector BCD enhancements facility 1")
+DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
 
Signature · 1 line
2.20.1
#4 lore raw

[Qemu-devel] [PULL for-4.1 1/4] vfio-ccw: Test vfio_set_irq_signaling() return value

In reply to Cornelia Huck

From: Alex Williamson <[email protected]>

Coverity doesn't like that most callers of vfio_set_irq_signaling() check the return value and doesn't understand the equivalence of testing the error pointer instead. Test the return value consistently.

Reported-by Coverity (CID 1402783)

Message-Id: <[email protected]>

---
 hw/vfio/ccw.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
hw/vfio/ccw.c +2 -3
index 6d0296fe4d9c..16f200e6fe6a 100644
@@ -327,9 +327,8 @@ static void vfio_ccw_unregister_io_notifier(VFIOCCWDevice *vcdev)
 {
     Error *err = NULL;
 
-    vfio_set_irq_signaling(&vcdev->vdev, VFIO_CCW_IO_IRQ_INDEX, 0,
-                           VFIO_IRQ_SET_ACTION_TRIGGER, -1, &err);
-    if (err) {
+    if (vfio_set_irq_signaling(&vcdev->vdev, VFIO_CCW_IO_IRQ_INDEX, 0,
+                               VFIO_IRQ_SET_ACTION_TRIGGER, -1, &err)) {
         error_reportf_err(err, VFIO_MSG_PREFIX, vcdev->vdev.name);
     }
 
Signature · 1 line
2.20.1
#5 lore raw
In reply to Cornelia Huck
Quoted 7 lines · Cornelia Huck

The following changes since commit 3a1acf5d47295d22ffdae0982a2fd808b802a7da:

Merge remote-tracking branch 'remotes/ehabkost/tags/machine-next-pull-request' into staging (2019-07-08 09:46:19 +0100)

are available in the Git repository at:

Quoted 9 lines

https://github.com/cohuck/qemu tags/s390x-20190709

for you to fetch changes up to 92b9afe45e10edd8eaed6329366201c2165a8065:

s390x/tcg: move fallthrough annotation (2019-07-09 10:37:44 +0200)

----------------------------------------------------------------
Fixes in cpu models, tcg, and vfio-ccw.

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.

-- PMM