[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] pc: cleanup 1.4 compat support
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 1/6] pc: cleanup 1.4 compat support |
Date: |
Tue, 20 Aug 2013 17:49:00 -0300 |
From: "Michael S. Tsirkin" <address@hidden>
Make 1.4 compat code call the 1.6 one, reducing
code duplication. Add comment explaining why we can't
make 1.4 call 1.5 as usual.
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Andreas Färber <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
---
hw/i386/pc_piix.c | 4 ++--
hw/i386/pc_q35.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 6e1e654..46f1fd7 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -265,8 +265,8 @@ static void pc_init_pci_1_4(QEMUMachineInitArgs *args)
{
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0,
CPUID_EXT_PCLMULQDQ);
- has_pci_info = false;
- pc_init_pci(args);
+ /* 1.5 was special - it enabled pvpanic in builtin machine */
+ pc_init_pci_1_6(args);
}
static void pc_init_pci_1_3(QEMUMachineInitArgs *args)
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index 10e770e..ab0aa70 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -234,8 +234,8 @@ static void pc_q35_init_1_4(QEMUMachineInitArgs *args)
{
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0,
CPUID_EXT_PCLMULQDQ);
- has_pci_info = false;
- pc_q35_init(args);
+ /* 1.5 was special - it enabled pvpanic in builtin machine */
+ pc_q35_init_1_6(args);
}
static QEMUMachine pc_q35_machine_v1_6 = {
--
1.8.3.1
- [Qemu-devel] [PATCH 0/6] pc init & compat function cleanup, Eduardo Habkost, 2013/08/20
- [Qemu-devel] [PATCH 1/6] pc: cleanup 1.4 compat support,
Eduardo Habkost <=
- [Qemu-devel] [PATCH 3/6] pc: Create pc_compat_*() functions, Eduardo Habkost, 2013/08/20
- [Qemu-devel] [PATCH 4/6] pc: pc_compat_1_4() now can call pc_compat_1_5(), Eduardo Habkost, 2013/08/20
- [Qemu-devel] [PATCH 5/6] pc_piix: Kill pc_init1() memory region args, Eduardo Habkost, 2013/08/20
- [Qemu-devel] [PATCH 2/6] pc: Kill pc_init_pci_1_0(), Eduardo Habkost, 2013/08/20
- [Qemu-devel] [PATCH 6/6] pc_piix: Pass QEMUMachineInitArgs to pc_init1(), Eduardo Habkost, 2013/08/20
- Re: [Qemu-devel] [PATCH 0/6] pc init & compat function cleanup, Michael S. Tsirkin, 2013/08/20
- Re: [Qemu-devel] [PATCH 0/6] pc init & compat function cleanup, Michael S. Tsirkin, 2013/08/20