From 99af33e527b21b82fd0fe233b44511c15cc006ef Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Tue, 8 Feb 2022 20:48:17 +0800 Subject: [PATCH 1/6] cpu: parse +/- feature to avoid failure To avoid cpu feature parse failure, +/- feature is added. Signed-off-by: Xu Yandong Signed-off-by: Mingwang Li --- cpu-parse-feature-to-avoid-failure.patch | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 cpu-parse-feature-to-avoid-failure.patch diff --git a/cpu-parse-feature-to-avoid-failure.patch b/cpu-parse-feature-to-avoid-failure.patch new file mode 100644 index 0000000..4ae42d9 --- /dev/null +++ b/cpu-parse-feature-to-avoid-failure.patch @@ -0,0 +1,68 @@ +From ef83cde8dd2c9b404527354489b14d2bd238733d Mon Sep 17 00:00:00 2001 +From: Xu Yandong +Date: Tue, 8 Feb 2022 20:48:17 +0800 +Subject: [PATCH] cpu: parse +/- feature to avoid failure + +To avoid cpu feature parse failure, +/- feature is added. + +Signed-off-by: Xu Yandong +Signed-off-by: Mingwang Li +--- + target/arm/cpu64.c | 37 +++++++++++++++++++++++++++++++++++++ + 1 file changed, 37 insertions(+) + +diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c +index 15245a60a8..019edc66c9 100644 +--- a/target/arm/cpu64.c ++++ b/target/arm/cpu64.c +@@ -933,10 +933,47 @@ static gchar *aarch64_gdb_arch_name(CPUState *cs) + return g_strdup("aarch64"); + } + ++/* Parse "+feature,-feature,feature=foo" CPU feature string ++ */ ++static void arm_cpu_parse_featurestr(const char *typename, char *features, ++ Error **errp ) ++{ ++ char *featurestr; ++ char *val; ++ static bool cpu_globals_initialized; ++ ++ if (cpu_globals_initialized) { ++ return; ++ } ++ cpu_globals_initialized = true; ++ ++ featurestr = features ? strtok(features, ",") : NULL; ++ while (featurestr) { ++ val = strchr(featurestr, '='); ++ if (val) { ++ GlobalProperty *prop = g_new0(typeof(*prop), 1); ++ *val = 0; ++ val++; ++ prop->driver = typename; ++ prop->property = g_strdup(featurestr); ++ prop->value = g_strdup(val); ++ qdev_prop_register_global(prop); ++ } else if (featurestr[0] == '+' || featurestr[0] == '-') { ++ warn_report("Ignore %s feature\n", featurestr); ++ } else { ++ error_setg(errp, "Expected key=value format, found %s.", ++ featurestr); ++ return; ++ } ++ featurestr = strtok(NULL, ","); ++ } ++} ++ + static void aarch64_cpu_class_init(ObjectClass *oc, void *data) + { + CPUClass *cc = CPU_CLASS(oc); + ++ cc->parse_features = arm_cpu_parse_featurestr; + cc->gdb_read_register = aarch64_cpu_gdb_read_register; + cc->gdb_write_register = aarch64_cpu_gdb_write_register; + cc->gdb_num_core_regs = 34; +-- +2.27.0 + -- Gitee From a11abf5dd999613a532555267354fc5b2390ab3d Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Tue, 8 Feb 2022 21:36:22 +0800 Subject: [PATCH 2/6] cpu: add Kunpeng-920 cpu support Add the Kunpeng-920 CPU model Signed-off-by: Xu Yandong Signed-off-by: Mingwang Li --- cpu-add-Kunpeng-920-cpu-support.patch | 68 +++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 cpu-add-Kunpeng-920-cpu-support.patch diff --git a/cpu-add-Kunpeng-920-cpu-support.patch b/cpu-add-Kunpeng-920-cpu-support.patch new file mode 100644 index 0000000..5e24be9 --- /dev/null +++ b/cpu-add-Kunpeng-920-cpu-support.patch @@ -0,0 +1,68 @@ +From 8ebab06c4824626ab4d7204133cd1e7b9c67f468 Mon Sep 17 00:00:00 2001 +From: Xu Yandong +Date: Tue, 8 Feb 2022 21:36:22 +0800 +Subject: [PATCH] cpu: add Kunpeng-920 cpu support + +Add the Kunpeng-920 CPU model + +Signed-off-by: Xu Yandong +Signed-off-by: Mingwang Li +--- + hw/arm/virt.c | 1 + + target/arm/cpu64.c | 21 +++++++++++++++++++++ + 2 files changed, 22 insertions(+) + +diff --git a/hw/arm/virt.c b/hw/arm/virt.c +index 30da05dfe0..a4a35584e9 100644 +--- a/hw/arm/virt.c ++++ b/hw/arm/virt.c +@@ -201,6 +201,7 @@ static const char *valid_cpus[] = { + ARM_CPU_TYPE_NAME("cortex-a53"), + ARM_CPU_TYPE_NAME("cortex-a57"), + ARM_CPU_TYPE_NAME("cortex-a72"), ++ ARM_CPU_TYPE_NAME("Kunpeng-920"), + ARM_CPU_TYPE_NAME("a64fx"), + ARM_CPU_TYPE_NAME("host"), + ARM_CPU_TYPE_NAME("max"), +diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c +index 019edc66c9..aaca79f7c3 100644 +--- a/target/arm/cpu64.c ++++ b/target/arm/cpu64.c +@@ -248,6 +248,26 @@ static void aarch64_a72_initfn(Object *obj) + define_arm_cp_regs(cpu, cortex_a72_a57_a53_cp_reginfo); + } + ++static void aarch64_kunpeng_920_initfn(Object *obj) ++{ ++ ARMCPU *cpu = ARM_CPU(obj); ++ ++ /* ++ * Hisilicon Kunpeng-920 CPU is similar to cortex-a72, ++ * so first initialize cpu data as cortex-a72, ++ * and then update the special register. ++ */ ++ aarch64_a72_initfn(obj); ++ ++ cpu->midr = 0x480fd010; ++ cpu->ctr = 0x84448004; ++ cpu->isar.id_aa64pfr0 = 0x11001111; ++ cpu->isar.id_aa64dfr0 = 0x110305408; ++ cpu->isar.id_aa64isar0 = 0x10211120; ++ cpu->isar.id_aa64mmfr0 = 0x101125; ++ cpu->kvm_target = KVM_ARM_TARGET_GENERIC_V8; ++} ++ + void arm_cpu_sve_finalize(ARMCPU *cpu, Error **errp) + { + /* +@@ -892,6 +912,7 @@ static const ARMCPUInfo aarch64_cpus[] = { + { .name = "cortex-a57", .initfn = aarch64_a57_initfn }, + { .name = "cortex-a53", .initfn = aarch64_a53_initfn }, + { .name = "cortex-a72", .initfn = aarch64_a72_initfn }, ++ { .name = "Kunpeng-920", .initfn = aarch64_kunpeng_920_initfn}, + { .name = "a64fx", .initfn = aarch64_a64fx_initfn }, + { .name = "max", .initfn = aarch64_max_initfn }, + }; +-- +2.27.0 + -- Gitee From fb454eb0e751503399371433a499ad8cf6a98cc0 Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Tue, 8 Feb 2022 22:18:55 +0800 Subject: [PATCH 3/6] cpu: add Cortex-A72 processor kvm target support The ARM Cortex-A72 is ARMv8-A micro-architecture, add kvm target to ARM Cortex-A72 processor definition. Signed-off-by: Xu Yandong Signed-off-by: Mingwang Li --- ...tex-A72-processor-kvm-target-support.patch | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 cpu-add-Cortex-A72-processor-kvm-target-support.patch diff --git a/cpu-add-Cortex-A72-processor-kvm-target-support.patch b/cpu-add-Cortex-A72-processor-kvm-target-support.patch new file mode 100644 index 0000000..9a83a8d --- /dev/null +++ b/cpu-add-Cortex-A72-processor-kvm-target-support.patch @@ -0,0 +1,51 @@ +From f0da7fa5230b5f771570b2c12288e4a56a20dd97 Mon Sep 17 00:00:00 2001 +From: Xu Yandong +Date: Tue, 8 Feb 2022 22:18:55 +0800 +Subject: [PATCH] cpu: add Cortex-A72 processor kvm target support + +The ARM Cortex-A72 is ARMv8-A micro-architecture, +add kvm target to ARM Cortex-A72 processor definition. + +Signed-off-by: Xu Yandong +Signed-off-by: Mingwang Li +--- + target/arm/cpu64.c | 1 + + target/arm/kvm-consts.h | 3 +++ + 2 files changed, 4 insertions(+) + +diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c +index aaca79f7c3..556b6f3691 100644 +--- a/target/arm/cpu64.c ++++ b/target/arm/cpu64.c +@@ -202,6 +202,7 @@ static void aarch64_a72_initfn(Object *obj) + ARMCPU *cpu = ARM_CPU(obj); + + cpu->dtb_compatible = "arm,cortex-a72"; ++ cpu->kvm_target = QEMU_KVM_ARM_TARGET_GENERIC_V8; + set_feature(&cpu->env, ARM_FEATURE_V8); + set_feature(&cpu->env, ARM_FEATURE_NEON); + set_feature(&cpu->env, ARM_FEATURE_GENERIC_TIMER); +diff --git a/target/arm/kvm-consts.h b/target/arm/kvm-consts.h +index 580f1c1fee..5f1311ade7 100644 +--- a/target/arm/kvm-consts.h ++++ b/target/arm/kvm-consts.h +@@ -130,6 +130,8 @@ MISMATCH_CHECK(QEMU_PSCI_RET_DISABLED, PSCI_RET_DISABLED); + #define QEMU_KVM_ARM_TARGET_CORTEX_A57 2 + #define QEMU_KVM_ARM_TARGET_XGENE_POTENZA 3 + #define QEMU_KVM_ARM_TARGET_CORTEX_A53 4 ++/* Generic ARM v8 target */ ++#define QEMU_KVM_ARM_TARGET_GENERIC_V8 5 + + /* There's no kernel define for this: sentinel value which + * matches no KVM target value for either 64 or 32 bit +@@ -141,6 +143,7 @@ MISMATCH_CHECK(QEMU_KVM_ARM_TARGET_FOUNDATION_V8, KVM_ARM_TARGET_FOUNDATION_V8); + MISMATCH_CHECK(QEMU_KVM_ARM_TARGET_CORTEX_A57, KVM_ARM_TARGET_CORTEX_A57); + MISMATCH_CHECK(QEMU_KVM_ARM_TARGET_XGENE_POTENZA, KVM_ARM_TARGET_XGENE_POTENZA); + MISMATCH_CHECK(QEMU_KVM_ARM_TARGET_CORTEX_A53, KVM_ARM_TARGET_CORTEX_A53); ++MISMATCH_CHECK(QEMU_KVM_ARM_TARGET_GENERIC_V8, KVM_ARM_TARGET_GENERIC_V8); + + #define CP_REG_ARM64 0x6000000000000000ULL + #define CP_REG_ARM_COPROC_MASK 0x000000000FFF0000 +-- +2.27.0 + -- Gitee From 3f8fe13bc46aa4d15f1bc4a14ebe3b513951b69e Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Tue, 8 Feb 2022 22:56:37 +0800 Subject: [PATCH 4/6] add Phytium's CPU models: FT-2000+ and Tengyun-S2500. Signed-off-by: Jiadong Zeng Signed-off-by: Mingwang Li --- ...CPU-models-FT-2000-and-Tengyun-S2500.patch | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 add-Phytium-s-CPU-models-FT-2000-and-Tengyun-S2500.patch diff --git a/add-Phytium-s-CPU-models-FT-2000-and-Tengyun-S2500.patch b/add-Phytium-s-CPU-models-FT-2000-and-Tengyun-S2500.patch new file mode 100644 index 0000000..0bc4707 --- /dev/null +++ b/add-Phytium-s-CPU-models-FT-2000-and-Tengyun-S2500.patch @@ -0,0 +1,74 @@ +From ec35c96006851a956a7e401f29af0ffe137c4bb9 Mon Sep 17 00:00:00 2001 +From: Jiadong Zeng +Date: Tue, 8 Feb 2022 22:56:37 +0800 +Subject: [PATCH] add Phytium's CPU models: FT-2000+ and Tengyun-S2500. + +Signed-off-by: Jiadong Zeng +Signed-off-by: Mingwang Li +--- + hw/arm/virt.c | 2 ++ + target/arm/cpu64.c | 28 ++++++++++++++++++++++++++++ + 2 files changed, 30 insertions(+) + +diff --git a/hw/arm/virt.c b/hw/arm/virt.c +index a4a35584e9..3c972fdab0 100644 +--- a/hw/arm/virt.c ++++ b/hw/arm/virt.c +@@ -202,6 +202,8 @@ static const char *valid_cpus[] = { + ARM_CPU_TYPE_NAME("cortex-a57"), + ARM_CPU_TYPE_NAME("cortex-a72"), + ARM_CPU_TYPE_NAME("Kunpeng-920"), ++ ARM_CPU_TYPE_NAME("FT-2000+"), ++ ARM_CPU_TYPE_NAME("Tengyun-S2500"), + ARM_CPU_TYPE_NAME("a64fx"), + ARM_CPU_TYPE_NAME("host"), + ARM_CPU_TYPE_NAME("max"), +diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c +index 556b6f3691..08d886de7b 100644 +--- a/target/arm/cpu64.c ++++ b/target/arm/cpu64.c +@@ -676,6 +676,32 @@ static Property arm_cpu_pauth_property = + static Property arm_cpu_pauth_impdef_property = + DEFINE_PROP_BOOL("pauth-impdef", ARMCPU, prop_pauth_impdef, false); + ++static void aarch64_max_ft2000plus_initfn(Object *obj) ++{ ++ ARMCPU *cpu = ARM_CPU(obj); ++ ++ if (kvm_enabled()) { ++ kvm_arm_set_cpu_features_from_host(cpu); ++ kvm_arm_add_vcpu_properties(obj); ++ } else { ++ aarch64_a72_initfn(obj); ++ cpu->midr = 0x70186622; ++ } ++} ++ ++static void aarch64_max_tengyun_s2500_initfn(Object *obj) ++{ ++ ARMCPU *cpu = ARM_CPU(obj); ++ ++ if (kvm_enabled()) { ++ kvm_arm_set_cpu_features_from_host(cpu); ++ kvm_arm_add_vcpu_properties(obj); ++ } else { ++ aarch64_a72_initfn(obj); ++ cpu->midr = 0x70186632; ++ } ++} ++ + /* -cpu max: if KVM is enabled, like -cpu host (best possible with this host); + * otherwise, a CPU with as many features enabled as our emulation supports. + * The version of '-cpu max' for qemu-system-arm is defined in cpu.c; +@@ -914,6 +940,8 @@ static const ARMCPUInfo aarch64_cpus[] = { + { .name = "cortex-a53", .initfn = aarch64_a53_initfn }, + { .name = "cortex-a72", .initfn = aarch64_a72_initfn }, + { .name = "Kunpeng-920", .initfn = aarch64_kunpeng_920_initfn}, ++ { .name = "FT-2000+", .initfn = aarch64_max_ft2000plus_initfn }, ++ { .name = "Tengyun-S2500", .initfn = aarch64_max_tengyun_s2500_initfn }, + { .name = "a64fx", .initfn = aarch64_a64fx_initfn }, + { .name = "max", .initfn = aarch64_max_initfn }, + }; +-- +2.27.0 + -- Gitee From 0244eac485978b9238030f870f64671c283ec603 Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Wed, 9 Feb 2022 11:51:03 +0800 Subject: [PATCH 5/6] =?UTF-8?q?spec:=20Update=20patch=20and=20changelog=20?= =?UTF-8?q?with=20!225=20=E5=9B=9E=E5=90=88openEuler=20CPU=20model=20?= =?UTF-8?q?=E8=87=AA=E7=A0=94patch=20Merge=20pull=20request=20!225=20from?= =?UTF-8?q?=20limingwang/qemu-6.2.0=20!225?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cpu: parse +/- feature to avoid failure cpu: add Kunpeng-920 cpu support cpu: add Cortex-A72 processor kvm target support add Phytium's CPU models: FT-2000+ and Tengyun-S2500. Signed-off-by: Chen Qun --- qemu.spec | 464 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 464 insertions(+) diff --git a/qemu.spec b/qemu.spec index 4efe98f..91d7f5d 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1,455 +1,919 @@ Name: qemu +Patch0002: cpu-add-Kunpeng-920-cpu-support.patch +Patch0003: cpu-add-Cortex-A72-processor-kvm-target-support.patch +Patch0004: add-Phytium-s-CPU-models-FT-2000-and-Tengyun-S2500.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch Version: 6.2.0 +Patch0001: cpu-parse-feature-to-avoid-failure.patch Release: 1 +Patch0001: cpu-parse-feature-to-avoid-failure.patch Epoch: 2 +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: QEMU is a generic and open source machine emulator and virtualizer +Patch0001: cpu-parse-feature-to-avoid-failure.patch License: GPLv2 and BSD and MIT and CC-BY-SA-4.0 +Patch0001: cpu-parse-feature-to-avoid-failure.patch URL: http://www.qemu.org +Patch0001: cpu-parse-feature-to-avoid-failure.patch Source0: https://www.qemu.org/download/%{name}-%{version}%{?rcstr}.tar.xz +Patch0001: cpu-parse-feature-to-avoid-failure.patch Source1: 80-kvm.rules +Patch0001: cpu-parse-feature-to-avoid-failure.patch Source2: 99-qemu-guest-agent.rules +Patch0001: cpu-parse-feature-to-avoid-failure.patch Source3: bridge.conf +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: flex +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: gcc +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: bison +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: texinfo +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: perl-podlators +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: kernel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: chrpath +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: gettext +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: python-sphinx +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: ninja-build +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: zlib-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: zstd-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: gtk3-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: gnutls-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: numactl-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: device-mapper-multipath-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: rdma-core-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libcap-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libcap-ng-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: cyrus-sasl-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libaio-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: usbredir-devel >= 0.5.2 +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libseccomp-devel >= 2.3.0 +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: systemd-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libiscsi-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: snappy-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: lzo-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: ncurses-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libattr-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libcurl-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libjpeg-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libpng-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: brlapi-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: pixman-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libusbx-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: bzip2-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libepoxy-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libtasn1-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libxml2-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libudev-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: pam-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: perl-Test-Harness +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: python3-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: librbd-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: krb5-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libssh-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: glib2 +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: spice-server-devel >= 0.12.5 +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: spice-protocol >= 0.12.3 +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch aarch64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: libfdt-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch BuildRequires: virglrenderer-devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(post): /usr/bin/getent +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(post): /usr/sbin/groupadd +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(post): /usr/sbin/useradd +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(post): systemd-units +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(preun): systemd-units +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(postun): systemd-units +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(postun): qemu-block-iscsi +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(postun): qemu-block-curl +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description +Patch0001: cpu-parse-feature-to-avoid-failure.patch QEMU is a FAST! processor emulator using dynamic translation to achieve good emulation speed. +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch QEMU has two operating modes: +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch Full system emulation. In this mode, QEMU emulates a full system (for example a PC), +Patch0001: cpu-parse-feature-to-avoid-failure.patch including one or several processors and various peripherals. It can be used to launch +Patch0001: cpu-parse-feature-to-avoid-failure.patch different Operating Systems without rebooting the PC or to debug system code. +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch User mode emulation. In this mode, QEMU can launch processes compiled for one CPU on another CPU. +Patch0001: cpu-parse-feature-to-avoid-failure.patch It can be used to launch the Wine Windows API emulator (https://www.winehq.org) or to ease +Patch0001: cpu-parse-feature-to-avoid-failure.patch cross-compilation and cross-debugging. +Patch0001: cpu-parse-feature-to-avoid-failure.patch You can refer to https://www.qemu.org for more infortmation. +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %package guest-agent +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: QEMU guest agent +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(post): systemd-units +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(preun): systemd-units +Patch0001: cpu-parse-feature-to-avoid-failure.patch Requires(postun): systemd-units +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description guest-agent +Patch0001: cpu-parse-feature-to-avoid-failure.patch This package provides an agent to run inside guests, which communicates +Patch0001: cpu-parse-feature-to-avoid-failure.patch with the host over a virtio-serial channel named "org.qemu.guest_agent.0" +Patch0001: cpu-parse-feature-to-avoid-failure.patch Please refer to https://wiki.qemu.org/Features/GuestAgent for more information. +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %package help +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: Documents for qemu +Patch0001: cpu-parse-feature-to-avoid-failure.patch Buildarch: noarch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description help +Patch0001: cpu-parse-feature-to-avoid-failure.patch This package provides documents for qemu related man help and information. +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %package img +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: QEMU command line tool for manipulating disk images +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description img +Patch0001: cpu-parse-feature-to-avoid-failure.patch This package provides a command line tool for manipulating disk images +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %package block-rbd +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: Qemu-block-rbd +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description block-rbd +Patch0001: cpu-parse-feature-to-avoid-failure.patch This package provides RBD support for Qemu +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %package block-ssh +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: Qemu-block-ssh +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description block-ssh +Patch0001: cpu-parse-feature-to-avoid-failure.patch This package provides block-ssh support for Qemu +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %package block-iscsi +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: Qemu-block-iscsi +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description block-iscsi +Patch0001: cpu-parse-feature-to-avoid-failure.patch This package provides block-iscsi support for Qemu +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %package block-curl +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: Qemu-block-curl +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description block-curl +Patch0001: cpu-parse-feature-to-avoid-failure.patch This package provides block-curl support for Qemu +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch %{ix86} x86_64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch %package seabios +Patch0001: cpu-parse-feature-to-avoid-failure.patch Summary: QEMU seabios +Patch0001: cpu-parse-feature-to-avoid-failure.patch %description seabios +Patch0001: cpu-parse-feature-to-avoid-failure.patch This package include bios-256k.bin and bios.bin of seabios +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %prep +Patch0001: cpu-parse-feature-to-avoid-failure.patch %setup -q -n qemu-%{version}%{?rcstr} +Patch0001: cpu-parse-feature-to-avoid-failure.patch %autopatch -p1 +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %build +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch x86_64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch buildarch="x86_64-softmmu" +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch aarch64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch buildarch="aarch64-softmmu" +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch buildldflags="VL_LDFLAGS=-Wl,--build-id" +Patch0001: cpu-parse-feature-to-avoid-failure.patch qemubuilddir="build" +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch ./configure \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --prefix=%{_prefix} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --target-list=${buildarch} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --extra-cflags="%{optflags} -fPIE -DPIE -fPIC" \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --extra-ldflags="-Wl,--build-id -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack" \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --datadir=%{_datadir} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --docdir=%{_docdir}/ \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --libdir=%{_libdir} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --libexecdir=%{_libexecdir} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --localstatedir=%{_localstatedir} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --sysconfdir=%{_sysconfdir} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --interp-prefix=%{_prefix}/qemu-%%M \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --firmwarepath=%{_datadir}/%{name} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --with-pkgversion=%{name}-%{version}-%{release} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --python=/usr/bin/python3 \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-slirp \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-gtk \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-docs \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-guest-agent \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-pie \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-numa \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-mpath \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-libnfs \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-bzip2 \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-kvm \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-tcg \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-rdma \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-linux-aio \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-cap-ng \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-vhost-user \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-tpm \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-modules \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-libssh \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-spice \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch aarch64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-fdt \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-virglrenderer \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-cap-ng \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-libusb \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-dmg \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-qcow1 \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-vdi \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-vvfat \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-qed \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-parallels \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-capstone \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-smartcard \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --enable-zstd \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch --disable-plugins +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch make %{?_smp_mflags} $buildldflags V=1 +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch cp ${qemubuilddir}/${buildarch}/qemu-system-* qemu-kvm +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %install +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch make %{?_smp_mflags} DESTDIR=%{buildroot} \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch install +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %find_lang %{name} +Patch0001: cpu-parse-feature-to-avoid-failure.patch install -m 0755 qemu-kvm %{buildroot}%{_libexecdir}/ +Patch0001: cpu-parse-feature-to-avoid-failure.patch ln -s %{_libexecdir}/qemu-kvm %{buildroot}/%{_bindir}/qemu-kvm +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm %{buildroot}/%{_bindir}/qemu-system-* +Patch0001: cpu-parse-feature-to-avoid-failure.patch install -D -p -m 0644 contrib/systemd/qemu-pr-helper.service %{buildroot}%{_unitdir}/qemu-pr-helper.service +Patch0001: cpu-parse-feature-to-avoid-failure.patch install -D -p -m 0644 contrib/systemd/qemu-pr-helper.socket %{buildroot}%{_unitdir}/qemu-pr-helper.socket +Patch0001: cpu-parse-feature-to-avoid-failure.patch install -D -p -m 0644 qemu.sasl %{buildroot}%{_sysconfdir}/sasl2/qemu.conf +Patch0001: cpu-parse-feature-to-avoid-failure.patch install -D -m 0644 %{_sourcedir}/bridge.conf %{buildroot}%{_sysconfdir}/qemu/bridge.conf +Patch0001: cpu-parse-feature-to-avoid-failure.patch install -D -m 0644 %{_sourcedir}/80-kvm.rules %{buildroot}/usr/lib/udev/rules.d/80-kvm.rules +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch # For qemu-guest-agent package +Patch0001: cpu-parse-feature-to-avoid-failure.patch %global _udevdir /lib/udev/rules.d +Patch0001: cpu-parse-feature-to-avoid-failure.patch +- cpu: parse +/- feature to avoid failure +- cpu: add Kunpeng-920 cpu support +- cpu: add Cortex-A72 processor kvm target support +- add Phytium's CPU models: FT-2000+ and Tengyun-S2500. + install -D -p -m 0644 contrib/systemd/qemu-guest-agent.service %{buildroot}%{_unitdir}/qemu-guest-agent.service +Patch0001: cpu-parse-feature-to-avoid-failure.patch install -D -m 0644 %{_sourcedir}/99-qemu-guest-agent.rules %{buildroot}%{_udevdir}/99-qemu-guest-agent.rules +Patch0001: cpu-parse-feature-to-avoid-failure.patch mkdir -p %{buildroot}%{_localstatedir}/log +Patch0001: cpu-parse-feature-to-avoid-failure.patch touch %{buildroot}%{_localstatedir}/log/qga-fsfreeze-hook.log +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch # For qemu docs package +Patch0001: cpu-parse-feature-to-avoid-failure.patch %global qemudocdir %{_docdir}/%{name} +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{qemudocdir}/specs +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{qemudocdir}/.buildinfo +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{qemudocdir}/objects.inv +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{qemudocdir}/genindex.html +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{qemudocdir}/index.html +Patch0001: cpu-parse-feature-to-avoid-failure.patch install -D -p -m 0644 -t %{buildroot}%{qemudocdir} README.rst COPYING COPYING.LIB LICENSE +Patch0001: cpu-parse-feature-to-avoid-failure.patch chmod -x %{buildroot}%{_mandir}/man1/* +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch aarch64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/vgabios*bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/bios*.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/linuxboot.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/kvmvapic.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/sgabios.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/multiboot.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/linuxboot_dma.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/pvh.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch x86_64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/vgabios-ati.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/bios-microvm.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/multiboot_dma.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/npcm7xx_bootrom.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/openbios-* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/slof.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/QEMU,*.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/bamboo.dtb +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/canyonlands.dtb +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/hppa-firmware.img +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/palcode-clipper +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/petalogix-* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/ppc_* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/qemu_vga.ndrv +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/s390-* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/skiboot.lid +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/spapr-* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/u-boot* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_bindir}/ivshmem* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -f %{buildroot}%{_datadir}/%{name}/edk2* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/firmware +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/opensbi* +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/qemu-nsis.bmp +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/audio-oss.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/audio-pa.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/block-gluster.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/ui-curses.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/ui-gtk.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/ui-sdl.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/audio-spice.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/chardev-baum.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/chardev-spice.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/hw-display-qxl.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/hw-usb-host.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/hw-usb-redirect.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/ui-opengl.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/ui-spice-app.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libdir}/%{name}/ui-spice-core.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_libexecdir}/vhost-user-gpu +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/vhost-user/50-qemu-gpu.json +Patch0001: cpu-parse-feature-to-avoid-failure.patch rm -rf %{buildroot}%{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch strip %{buildroot}%{_libdir}/%{name}/block-rbd.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch strip %{buildroot}%{_libdir}/%{name}/block-iscsi.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch strip %{buildroot}%{_libdir}/%{name}/block-curl.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch strip %{buildroot}%{_libdir}/%{name}/block-ssh.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch for f in %{buildroot}%{_bindir}/* %{buildroot}%{_libdir}/* \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{buildroot}%{_libexecdir}/*; do +Patch0001: cpu-parse-feature-to-avoid-failure.patch if file $f | grep -q ELF | grep -q -i shared; then chrpath --delete $f; fi +Patch0001: cpu-parse-feature-to-avoid-failure.patch done +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %check +Patch0001: cpu-parse-feature-to-avoid-failure.patch make check V=1 +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %pre +Patch0001: cpu-parse-feature-to-avoid-failure.patch getent group kvm >/dev/null || groupadd -g 36 -r kvm +Patch0001: cpu-parse-feature-to-avoid-failure.patch getent group qemu >/dev/null || groupadd -g 107 -r qemu +Patch0001: cpu-parse-feature-to-avoid-failure.patch getent passwd qemu >/dev/null || \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ +Patch0001: cpu-parse-feature-to-avoid-failure.patch -c "qemu user" qemu +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %post guest-agent +Patch0001: cpu-parse-feature-to-avoid-failure.patch %systemd_post qemu-guest-agent.service +Patch0001: cpu-parse-feature-to-avoid-failure.patch %preun guest-agent +Patch0001: cpu-parse-feature-to-avoid-failure.patch %systemd_preun qemu-guest-agent.service +Patch0001: cpu-parse-feature-to-avoid-failure.patch %postun guest-agent +Patch0001: cpu-parse-feature-to-avoid-failure.patch %systemd_postun_with_restart qemu-guest-agent.service +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files -f %{name}.lang +Patch0001: cpu-parse-feature-to-avoid-failure.patch %dir %{_datadir}/%{name}/ +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libexecdir}/qemu-kvm +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-kvm +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/accel-qtest-*.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch x86_64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/accel-tcg-*.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/hw-display-virtio-vga-gl.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/hw-display-virtio-vga.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/hw-display-virtio-gpu.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/efi-virtio.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/efi-e1000.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/efi-e1000e.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/efi-rtl8139.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/efi-pcnet.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/efi-ne2k_pci.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/efi-eepro100.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/efi-vmxnet3.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/pxe-virtio.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/pxe-e1000.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/pxe-ne2k_pci.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/pxe-pcnet.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/pxe-rtl8139.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/pxe-eepro100.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/qboot.rom +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/trace-events-all +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/applications/qemu.desktop +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/icons/hicolor/*/apps/* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/keymaps/ +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/elf2dmp +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-edid +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-keymap +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-pr-helper +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libexecdir}/virtfs-proxy-helper +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libexecdir}/virtiofsd +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_unitdir}/qemu-pr-helper.service +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_unitdir}/qemu-pr-helper.socket +Patch0001: cpu-parse-feature-to-avoid-failure.patch %attr(4755, root, root) %{_libexecdir}/qemu-bridge-helper +Patch0001: cpu-parse-feature-to-avoid-failure.patch %config(noreplace) %{_sysconfdir}/sasl2/qemu.conf +Patch0001: cpu-parse-feature-to-avoid-failure.patch %dir %{_sysconfdir}/qemu +Patch0001: cpu-parse-feature-to-avoid-failure.patch %config(noreplace) %{_sysconfdir}/qemu/bridge.conf +Patch0001: cpu-parse-feature-to-avoid-failure.patch /usr/lib/udev/rules.d/80-kvm.rules +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/COPYING +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/COPYING.LIB +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/LICENSE +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch x86_64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/bios.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/bios-256k.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/vgabios.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/vgabios-cirrus.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/vgabios-qxl.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/vgabios-stdvga.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/vgabios-vmware.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/vgabios-virtio.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/vgabios-ramfb.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/vgabios-bochs-display.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/linuxboot.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/linuxboot_dma.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/pvh.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/multiboot.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/kvmvapic.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/sgabios.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files help +Patch0001: cpu-parse-feature-to-avoid-failure.patch %dir %{qemudocdir} +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/about +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/devel +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/interop +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/search* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/_static +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/system +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/tools +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/user +Patch0001: cpu-parse-feature-to-avoid-failure.patch %doc %{qemudocdir}/README.rst +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man1/qemu.1* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man1/qemu-img.1* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man1/qemu-storage-daemon.1* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man1/virtfs-proxy-helper.1* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man1/virtiofsd.1* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man7/qemu-block-drivers.7* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man7/qemu-cpu-models.7* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man7/qemu-ga-ref.7* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man7/qemu-qmp-ref.7* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man8/qemu-ga.8* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man8/qemu-nbd.8* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man8/qemu-pr-helper.8* +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files guest-agent +Patch0001: cpu-parse-feature-to-avoid-failure.patch %defattr(-,root,root,-) +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-ga +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_mandir}/man8/qemu-ga.8* +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_unitdir}/qemu-guest-agent.service +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_udevdir}/99-qemu-guest-agent.rules +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ghost %{_localstatedir}/log/qga-fsfreeze-hook.log +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files img +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-img +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-io +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-nbd +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_bindir}/qemu-storage-daemon +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files block-rbd +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/block-rbd.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files block-ssh +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/block-ssh.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files block-iscsi +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/block-iscsi.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files block-curl +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_libdir}/%{name}/block-curl.so +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %ifarch %{ix86} x86_64 +Patch0001: cpu-parse-feature-to-avoid-failure.patch %files seabios +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/bios-256k.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %{_datadir}/%{name}/bios.bin +Patch0001: cpu-parse-feature-to-avoid-failure.patch %endif +Patch0001: cpu-parse-feature-to-avoid-failure.patch +Patch0001: cpu-parse-feature-to-avoid-failure.patch %changelog +* Wed Feb 09 2022 Chen Qun +Patch0001: cpu-parse-feature-to-avoid-failure.patch * Thu Jan 27 2022 Xiangdong Liu +Patch0001: cpu-parse-feature-to-avoid-failure.patch - Package init +Patch0001: cpu-parse-feature-to-avoid-failure.patch -- Gitee From e9bce01a1d0624be68eaf6846a0efca7ed99b384 Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Wed, 9 Feb 2022 11:51:07 +0800 Subject: [PATCH 6/6] spec: Update release version with !225 increase release verison by one Signed-off-by: Chen Qun --- qemu.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu.spec b/qemu.spec index 91d7f5d..698c6e6 100644 --- a/qemu.spec +++ b/qemu.spec @@ -5,7 +5,7 @@ Patch0004: add-Phytium-s-CPU-models-FT-2000-and-Tengyun-S2500.patch Patch0001: cpu-parse-feature-to-avoid-failure.patch Version: 6.2.0 Patch0001: cpu-parse-feature-to-avoid-failure.patch -Release: 1 +Release: 2 Patch0001: cpu-parse-feature-to-avoid-failure.patch Epoch: 2 Patch0001: cpu-parse-feature-to-avoid-failure.patch -- Gitee