b7fbd568b2
- kvm-migration-Move-yank-outside-qemu_start_incoming_migr.patch [bz#1974683] - kvm-migration-Allow-reset-of-postcopy_recover_triggered-.patch [bz#1974683] - kvm-Remove-RHEL-7.0.0-machine-type.patch [bz#1968519] - kvm-Remove-RHEL-7.1.0-machine-type.patch [bz#1968519] - kvm-Remove-RHEL-7.2.0-machine-type.patch [bz#1968519] - kvm-Remove-RHEL-7.3.0-machine-types.patch [bz#1968519] - kvm-Remove-RHEL-7.4.0-machine-types.patch [bz#1968519] - kvm-Remove-RHEL-7.5.0-machine-types.patch [bz#1968519] - kvm-acpi-pc-revert-back-to-v5.2-PCI-slot-enumeration.patch [bz#1957194] - kvm-migration-failover-reset-partially_hotplugged.patch [bz#1957194] - kvm-hmp-Fix-loadvm-to-resume-the-VM-on-success-instead-o.patch [bz#1957194] - kvm-migration-Move-bitmap_mutex-out-of-migration_bitmap_.patch [bz#1957194] - kvm-i386-cpu-Expose-AVX_VNNI-instruction-to-guest.patch [bz#1957194] - kvm-ratelimit-protect-with-a-mutex.patch [bz#1957194] - kvm-Update-Linux-headers-to-5.13-rc4.patch [bz#1957194] - kvm-i386-Add-ratelimit-for-bus-locks-acquired-in-guest.patch [bz#1957194] - kvm-iothread-generalize-iothread_set_param-iothread_get_.patch [bz#1957194] - kvm-iothread-add-aio-max-batch-parameter.patch [bz#1957194] - kvm-linux-aio-limit-the-batch-size-using-aio-max-batch-p.patch [bz#1957194] - kvm-block-nvme-Fix-VFIO_MAP_DMA-failed-No-space-left-on-.patch [bz#1957194] - kvm-migration-move-wait-unplug-loop-to-its-own-function.patch [bz#1957194] - kvm-migration-failover-continue-to-wait-card-unplug-on-e.patch [bz#1957194] - kvm-aarch64-Add-USB-storage-devices.patch [bz#1957194] - kvm-iotests-Improve-and-rename-test-291-to-qemu-img-bitm.patch [bz#1957194] - kvm-qemu-img-Fail-fast-on-convert-bitmaps-with-inconsist.patch [bz#1957194] - kvm-qemu-img-Add-skip-broken-bitmaps-for-convert-bitmaps.patch [bz#1957194] - kvm-audio-Never-send-migration-section.patch [bz#1957194] - kvm-pc-bios-s390-ccw-bootmap-Silence-compiler-warning-fr.patch [bz#1939509 bz#1940132] - kvm-pc-bios-s390-ccw-Use-reset_psw-pointer-instead-of-ha.patch [bz#1939509 bz#1940132] - kvm-pc-bios-s390-ccw-netboot-Use-Wl-prefix-to-pass-param.patch [bz#1939509 bz#1940132] - kvm-pc-bios-s390-ccw-Silence-warning-from-Clang-by-marki.patch [bz#1939509 bz#1940132] - kvm-pc-bios-s390-ccw-Fix-the-cc-option-macro-in-the-Make.patch [bz#1939509 bz#1940132] - kvm-pc-bios-s390-ccw-Silence-GCC-11-stringop-overflow-wa.patch [bz#1939509 bz#1940132] - kvm-pc-bios-s390-ccw-Allow-building-with-Clang-too.patch [bz#1939509 bz#1940132] - kvm-pc-bios-s390-ccw-Fix-inline-assembly-for-older-versi.patch [bz#1939509 bz#1940132] - kvm-configure-Fix-endianess-test-with-LTO.patch [bz#1939509 bz#1940132] - kvm-spec-Switch-toolchain-to-Clang-LLVM.patch [bz#1939509 bz#1940132] - kvm-spec-Use-safe-stack-for-x86_64.patch [bz#1939509 bz#1940132] - kvm-spec-Reenable-write-support-for-VMDK-etc.-in-tools.patch [bz#1989841] - Resolves: bz#1974683 (Fail to set migrate incoming for 2nd time after the first time failed) - Resolves: bz#1968519 (Remove all the old 7.0-7.5 machine types) - Resolves: bz#1957194 (Synchronize RHEL-AV 8.5.0 changes to RHEL 9.0.0 Beta) - Resolves: bz#1939509 (QEMU: enable SafeStack) - Resolves: bz#1940132 (QEMU: switch build toolchain to Clang/LLVM) - Resolves: bz#1989841 (RFE: qemu-img cannot convert images into vmdk and vpc formats)
107 lines
3.7 KiB
Diff
107 lines
3.7 KiB
Diff
From c783eab8a3770703a39bbbd7edd23af7b9cb8f14 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Huth <thuth@redhat.com>
|
|
Date: Wed, 12 May 2021 19:15:48 +0200
|
|
Subject: [PATCH 35/39] pc-bios/s390-ccw: Fix inline assembly for older
|
|
versions of Clang
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
RH-Author: Jon Maloy <jmaloy@redhat.com>
|
|
RH-MergeRequest: 24: v7: Add support for building qemu-kvm with clang and safe-stack
|
|
RH-Commit: [8/11] 9a69c7705b8128b4098f818c6b672d484e459c83 (jmaloy/qemu-kvm-centos-jon)
|
|
RH-Bugzilla: 1939509 1940132
|
|
RH-Acked-by: Danilo Cesar Lemes de Paula <ddepaula@redhat.com>
|
|
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
|
Clang versions before v11.0 insist on having the %rX or %cX register
|
|
names instead of just a number. Since our Travis-CI is currently
|
|
still using Clang v6.0, we have to fix this to avoid failing jobs.
|
|
|
|
Message-Id: <20210512171550.476130-2-thuth@redhat.com>
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
|
(cherry picked from commit 052b66e7211af64964e005126eaa3c944b296b0e)
|
|
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
|
|
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
---
|
|
pc-bios/s390-ccw/helper.h | 2 +-
|
|
pc-bios/s390-ccw/jump2ipl.c | 4 ++--
|
|
pc-bios/s390-ccw/menu.c | 8 ++++----
|
|
pc-bios/s390-ccw/virtio.c | 2 +-
|
|
4 files changed, 8 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/pc-bios/s390-ccw/helper.h b/pc-bios/s390-ccw/helper.h
|
|
index dfcfea0ff0..3d0731c4c6 100644
|
|
--- a/pc-bios/s390-ccw/helper.h
|
|
+++ b/pc-bios/s390-ccw/helper.h
|
|
@@ -31,7 +31,7 @@ static inline void *u32toptr(uint32_t n)
|
|
|
|
static inline void yield(void)
|
|
{
|
|
- asm volatile ("diag 0,0,0x44"
|
|
+ asm volatile ("diag %%r0,%%r0,0x44"
|
|
: :
|
|
: "memory", "cc");
|
|
}
|
|
diff --git a/pc-bios/s390-ccw/jump2ipl.c b/pc-bios/s390-ccw/jump2ipl.c
|
|
index 73e4367e09..78f5f46533 100644
|
|
--- a/pc-bios/s390-ccw/jump2ipl.c
|
|
+++ b/pc-bios/s390-ccw/jump2ipl.c
|
|
@@ -64,8 +64,8 @@ void jump_to_IPL_code(uint64_t address)
|
|
* We use the load normal reset to keep r15 unchanged. jump_to_IPL_2
|
|
* can then use r15 as its stack pointer.
|
|
*/
|
|
- asm volatile("lghi 1,1\n\t"
|
|
- "diag 1,1,0x308\n\t"
|
|
+ asm volatile("lghi %%r1,1\n\t"
|
|
+ "diag %%r1,%%r1,0x308\n\t"
|
|
: : : "1", "memory");
|
|
panic("\n! IPL returns !\n");
|
|
}
|
|
diff --git a/pc-bios/s390-ccw/menu.c b/pc-bios/s390-ccw/menu.c
|
|
index de8260a5d6..d601952d3e 100644
|
|
--- a/pc-bios/s390-ccw/menu.c
|
|
+++ b/pc-bios/s390-ccw/menu.c
|
|
@@ -36,9 +36,9 @@ static inline void enable_clock_int(void)
|
|
uint64_t tmp = 0;
|
|
|
|
asm volatile(
|
|
- "stctg 0,0,%0\n"
|
|
+ "stctg %%c0,%%c0,%0\n"
|
|
"oi 6+%0, 0x8\n"
|
|
- "lctlg 0,0,%0"
|
|
+ "lctlg %%c0,%%c0,%0"
|
|
: : "Q" (tmp) : "memory"
|
|
);
|
|
}
|
|
@@ -48,9 +48,9 @@ static inline void disable_clock_int(void)
|
|
uint64_t tmp = 0;
|
|
|
|
asm volatile(
|
|
- "stctg 0,0,%0\n"
|
|
+ "stctg %%c0,%%c0,%0\n"
|
|
"ni 6+%0, 0xf7\n"
|
|
- "lctlg 0,0,%0"
|
|
+ "lctlg %%c0,%%c0,%0"
|
|
: : "Q" (tmp) : "memory"
|
|
);
|
|
}
|
|
diff --git a/pc-bios/s390-ccw/virtio.c b/pc-bios/s390-ccw/virtio.c
|
|
index ab49840db8..5d2c6e3381 100644
|
|
--- a/pc-bios/s390-ccw/virtio.c
|
|
+++ b/pc-bios/s390-ccw/virtio.c
|
|
@@ -54,7 +54,7 @@ static long kvm_hypercall(unsigned long nr, unsigned long param1,
|
|
register ulong r_param3 asm("4") = param3;
|
|
register long retval asm("2");
|
|
|
|
- asm volatile ("diag 2,4,0x500"
|
|
+ asm volatile ("diag %%r2,%%r4,0x500"
|
|
: "=d" (retval)
|
|
: "d" (r_nr), "0" (r_param1), "r"(r_param2), "d"(r_param3)
|
|
: "memory", "cc");
|
|
--
|
|
2.27.0
|
|
|