|
|
4841a6 |
From 96edd15df257f1d1496397a6fac24b4316570d7e Mon Sep 17 00:00:00 2001
|
|
|
6443c2 |
From: Jon Maloy <jmaloy@redhat.com>
|
|
|
6443c2 |
Date: Thu, 14 Apr 2022 16:45:30 -0400
|
|
|
4841a6 |
Subject: [PATCH 1/3] Revert redhat: Add some devices for exporting upstream
|
|
|
6443c2 |
machine types
|
|
|
6443c2 |
|
|
|
6443c2 |
RH-Author: Jon Maloy <jmaloy@redhat.com>
|
|
|
4841a6 |
RH-MergeRequest: 156: Revert redhat: Add some devices for exporting upstream machine types
|
|
|
4841a6 |
RH-Commit: [1/1] f25d0da3a181136917ead82f5a5c59efe3fa445a (jmaloy/qemu-kvm)
|
|
|
4841a6 |
RH-Bugzilla: 2065043
|
|
|
6443c2 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
6443c2 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
6443c2 |
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
|
6443c2 |
|
|
|
4841a6 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2065043
|
|
|
6443c2 |
Upstream: no
|
|
|
6443c2 |
|
|
|
6443c2 |
Manual revert of commit 70d3924521c9bfd912bcf1a1fc76f49eb377de46, since
|
|
|
6443c2 |
the directory structure looks different from rhel-av-8.4.0.z where
|
|
|
6443c2 |
this commit is taken from. Besides, x86_64-softmmu.mak looks totally
|
|
|
6443c2 |
different and should not be affected by this reversal.
|
|
|
6443c2 |
|
|
|
6443c2 |
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
|
|
|
6443c2 |
---
|
|
|
6443c2 |
configs/devices/x86_64-softmmu/x86_64-rh-devices.mak | 1 -
|
|
|
6443c2 |
.../devices/x86_64-softmmu/x86_64-upstream-devices.mak | 4 ----
|
|
|
6443c2 |
hw/char/parallel.c | 9 ---------
|
|
|
6443c2 |
hw/i386/pc_piix.c | 2 +-
|
|
|
6443c2 |
hw/i386/pc_q35.c | 2 +-
|
|
|
6443c2 |
hw/timer/hpet.c | 8 --------
|
|
|
6443c2 |
6 files changed, 2 insertions(+), 24 deletions(-)
|
|
|
6443c2 |
delete mode 100644 configs/devices/x86_64-softmmu/x86_64-upstream-devices.mak
|
|
|
6443c2 |
|
|
|
6443c2 |
diff --git a/configs/devices/x86_64-softmmu/x86_64-rh-devices.mak b/configs/devices/x86_64-softmmu/x86_64-rh-devices.mak
|
|
|
6443c2 |
index fdbbdf9742..31ce08edab 100644
|
|
|
6443c2 |
--- a/configs/devices/x86_64-softmmu/x86_64-rh-devices.mak
|
|
|
6443c2 |
+++ b/configs/devices/x86_64-softmmu/x86_64-rh-devices.mak
|
|
|
6443c2 |
@@ -1,5 +1,4 @@
|
|
|
6443c2 |
include ../rh-virtio.mak
|
|
|
6443c2 |
-include x86_64-upstream-devices.mak
|
|
|
6443c2 |
|
|
|
6443c2 |
CONFIG_AC97=y
|
|
|
6443c2 |
CONFIG_ACPI=y
|
|
|
6443c2 |
diff --git a/configs/devices/x86_64-softmmu/x86_64-upstream-devices.mak b/configs/devices/x86_64-softmmu/x86_64-upstream-devices.mak
|
|
|
6443c2 |
deleted file mode 100644
|
|
|
6443c2 |
index 2cd20f54d2..0000000000
|
|
|
6443c2 |
--- a/configs/devices/x86_64-softmmu/x86_64-upstream-devices.mak
|
|
|
6443c2 |
+++ /dev/null
|
|
|
6443c2 |
@@ -1,4 +0,0 @@
|
|
|
6443c2 |
-# We need "isa-parallel"
|
|
|
6443c2 |
-CONFIG_PARALLEL=y
|
|
|
6443c2 |
-# We need "hpet"
|
|
|
6443c2 |
-CONFIG_HPET=y
|
|
|
6443c2 |
diff --git a/hw/char/parallel.c b/hw/char/parallel.c
|
|
|
6443c2 |
index e5f108211b..b45e67bfbb 100644
|
|
|
6443c2 |
--- a/hw/char/parallel.c
|
|
|
6443c2 |
+++ b/hw/char/parallel.c
|
|
|
6443c2 |
@@ -29,7 +29,6 @@
|
|
|
6443c2 |
#include "chardev/char-parallel.h"
|
|
|
6443c2 |
#include "chardev/char-fe.h"
|
|
|
6443c2 |
#include "hw/acpi/aml-build.h"
|
|
|
6443c2 |
-#include "hw/boards.h"
|
|
|
6443c2 |
#include "hw/irq.h"
|
|
|
6443c2 |
#include "hw/isa/isa.h"
|
|
|
6443c2 |
#include "hw/qdev-properties.h"
|
|
|
6443c2 |
@@ -535,14 +534,6 @@ static void parallel_isa_realizefn(DeviceState *dev, Error **errp)
|
|
|
6443c2 |
int base;
|
|
|
6443c2 |
uint8_t dummy;
|
|
|
6443c2 |
|
|
|
6443c2 |
- /* Restricted for Red Hat Enterprise Linux */
|
|
|
6443c2 |
- MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
|
|
|
6443c2 |
- if (strstr(mc->name, "rhel")) {
|
|
|
6443c2 |
- error_setg(errp, "Device %s is not supported with machine type %s",
|
|
|
6443c2 |
- object_get_typename(OBJECT(dev)), mc->name);
|
|
|
6443c2 |
- return;
|
|
|
6443c2 |
- }
|
|
|
6443c2 |
-
|
|
|
6443c2 |
if (!qemu_chr_fe_backend_connected(&s->chr)) {
|
|
|
6443c2 |
error_setg(errp, "Can't create parallel device, empty char device");
|
|
|
6443c2 |
return;
|
|
|
6443c2 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
6443c2 |
index ab6d03e07a..5f101c8748 100644
|
|
|
6443c2 |
--- a/hw/i386/pc_piix.c
|
|
|
6443c2 |
+++ b/hw/i386/pc_piix.c
|
|
|
6443c2 |
@@ -966,7 +966,7 @@ static void pc_machine_rhel7_options(MachineClass *m)
|
|
|
6443c2 |
{
|
|
|
6443c2 |
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
|
|
6443c2 |
m->family = "pc_piix_Y";
|
|
|
6443c2 |
- m->default_machine_opts = "firmware=bios-256k.bin,hpet=off";
|
|
|
6443c2 |
+ m->default_machine_opts = "firmware=bios-256k.bin";
|
|
|
6443c2 |
pcmc->default_nic_model = "e1000";
|
|
|
6443c2 |
pcmc->pci_root_uid = 0;
|
|
|
6443c2 |
m->default_display = "std";
|
|
|
6443c2 |
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
|
|
6443c2 |
index 882fe7a68d..73b0d0d317 100644
|
|
|
6443c2 |
--- a/hw/i386/pc_q35.c
|
|
|
6443c2 |
+++ b/hw/i386/pc_q35.c
|
|
|
6443c2 |
@@ -633,7 +633,7 @@ static void pc_q35_machine_rhel_options(MachineClass *m)
|
|
|
6443c2 |
pcmc->pci_root_uid = 0;
|
|
|
6443c2 |
m->family = "pc_q35_Z";
|
|
|
6443c2 |
m->units_per_default_bus = 1;
|
|
|
6443c2 |
- m->default_machine_opts = "firmware=bios-256k.bin,hpet=off";
|
|
|
6443c2 |
+ m->default_machine_opts = "firmware=bios-256k.bin";
|
|
|
6443c2 |
m->default_display = "std";
|
|
|
6443c2 |
m->no_floppy = 1;
|
|
|
6443c2 |
m->no_parallel = 1;
|
|
|
6443c2 |
diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c
|
|
|
6443c2 |
index 202e032524..9520471be2 100644
|
|
|
6443c2 |
--- a/hw/timer/hpet.c
|
|
|
6443c2 |
+++ b/hw/timer/hpet.c
|
|
|
6443c2 |
@@ -733,14 +733,6 @@ static void hpet_realize(DeviceState *dev, Error **errp)
|
|
|
6443c2 |
int i;
|
|
|
6443c2 |
HPETTimer *timer;
|
|
|
6443c2 |
|
|
|
6443c2 |
- /* Restricted for Red Hat Enterprise Linux */
|
|
|
6443c2 |
- MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
|
|
|
6443c2 |
- if (strstr(mc->name, "rhel")) {
|
|
|
6443c2 |
- error_setg(errp, "Device %s is not supported with machine type %s",
|
|
|
6443c2 |
- object_get_typename(OBJECT(dev)), mc->name);
|
|
|
6443c2 |
- return;
|
|
|
6443c2 |
- }
|
|
|
6443c2 |
-
|
|
|
6443c2 |
if (!s->intcap) {
|
|
|
6443c2 |
warn_report("Hpet's intcap not initialized");
|
|
|
6443c2 |
}
|
|
|
6443c2 |
--
|
|
|
4841a6 |
2.35.1
|
|
|
6443c2 |
|