s390x/misc_helper.c: wrap s390_virtio_hypercall in BQL
PATCH 1/1 s390x/misc_helper.c: wrap s390_virtio_hypercall in BQL
s390_virtio_hypercall can trigger IO events and interrupts, most notably when using virtio-ccw devices.
--- roms/qemu-palcode | 2 +- roms/seabios | 2 +- target/s390x/misc_helper.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-)
roms/qemu-palcode +1 -1
@@ -1 +1 @@ -Subproject commit f3c7e44c70254975df2a00af39701eafbac4d471 +Subproject commit c87a92639b28ac42bc8f6c67443543b405dc479b
roms/seabios +1 -1
@@ -1 +1 @@ -Subproject commit 5f4c7b13cdf9c450eb55645f4362ea58fa61b79b +Subproject commit e2fc41e24ee0ada60fc511d60b15a41b294538be
target/s390x/misc_helper.c +2 -0
@@ -307,7 +307,9 @@ void HELPER(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num)switch (num) {case 0x500 :/* KVM hypercall */ +qemu_mutex_lock_iothread (); r =s390_virtio_hypercall (env); +qemu_mutex_unlock_iothread ();break ;case 0x44 :/* yield */
Signature · 1 line
2.11.0
Quoted 26 lines
Am 23.04.2017 um 18:08 schrieb Aurelien Jarno <[email protected]>:
s390_virtio_hypercallcan trigger IO events and interrupts, most notably when using virtio-ccw devices.Signed-off-by Aurelien Jarno <[email protected]>---
roms/qemu-palcode | 2 +- roms/seabios | 2 +- target/s390x/misc_helper.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-)roms/qemu-palcode +1
-1@@ -1 +1 @@ -Subproject commit f3c7e44c70254975df2a00af39701eafbac4d471 +Subproject commit c87a92639b28ac42bc8f6c67443543b405dc479broms/seabios +0
-0
roms/seabios line 1
Quoted 2 lines
roms/seabios +1
-1@@ -1 +1 @@ -Subproject commit 5f4c7b13cdf9c450eb55645f4362ea58fa61b79b +Subproject commit e2fc41e24ee0ada60fc511d60b15a41b294538be
I guess you didn't mean to send those hunks?
target/s390x/misc_helper.c void HELPER(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num) · line 312
Quoted 11 lines
target/s390x/misc_helper.c +2
-0@@ -307,7 +307,9 @@ void HELPER(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num)switch (num) {case 0x500 :/* KVM hypercall */ +qemu_mutex_lock_iothread (); r =s390_virtio_hypercall (env); +qemu_mutex_unlock_iothread ();
That change however looks good to me. So without the subprj commits,
Alex
Quoted 6 lines
target/s390x/misc_helper.c +0
-0break ;case 0x44 :/* yield */ Signature · 1 line
2.11.0
Quoted 14 lines · Alexander Graf
Quoted 14 lines
Am 23.04.2017 um 18:08 schrieb Aurelien Jarno <[email protected]>:
s390_virtio_hypercallcan trigger IO events and interrupts, most notably when using virtio-ccw devices.Signed-off-by Aurelien Jarno <[email protected]>---
roms/qemu-palcode | 2 +- roms/seabios | 2 +- target/s390x/misc_helper.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-)
Quoted 16 lines
Quoted 12 lines
roms/qemu-palcode +1
-1@@ -1 +1 @@ -Subproject commit f3c7e44c70254975df2a00af39701eafbac4d471 +Subproject commit c87a92639b28ac42bc8f6c67443543b405dc479broms/seabios +0
-0roms/seabios line 1
Quoted 2 lines
roms/seabios +1
-1@@ -1 +1 @@ -Subproject commit 5f4c7b13cdf9c450eb55645f4362ea58fa61b79b +Subproject commit e2fc41e24ee0ada60fc511d60b15a41b294538beI guess you didn't mean to send those hunks?
Indeed that's a mistake sorry, i'll resend a new version.
Signature · 2 lines
Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://www.aurel32.net