From: Vincenzo Maffione <v.maffione@gmail.com>
To: qemu-devel@nongnu.org
Cc: aliguori@us.ibm.com, mst@redhat.com, rizzo@iet.unipi.it,
jasowang@redhat.com, Vincenzo Maffione <v.maffione@gmail.com>,
stefanha@redhat.com, pbonzini@redhat.com,
g.lettieri@iet.unipi.it, lersek@redhat.com, afaerber@suse.de
Subject: [Qemu-devel] [PATCH v5 2/2] i386/pc: introducing compat_props for pc-1.6
Date: Wed, 31 Jul 2013 10:13:50 +0200 [thread overview]
Message-ID: <1375258430-2120-3-git-send-email-v.maffione@gmail.com> (raw)
In-Reply-To: <1375258430-2120-1-git-send-email-v.maffione@gmail.com>
PC_COMPAT_1_6 macro introduced in order to set the e1000
"mitigation" property off for pc-i440fx-1.6 and pc-q35-1.6
machines.
Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
---
hw/i386/pc_piix.c | 4 ++++
hw/i386/pc_q35.c | 4 ++++
include/hw/i386/pc.h | 7 +++++++
3 files changed, 15 insertions(+)
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index ab25458..f039377 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -343,6 +343,10 @@ static QEMUMachine pc_i440fx_machine_v1_6 = {
.init = pc_init_pci,
.hot_add_cpu = pc_hot_add_cpu,
.max_cpus = 255,
+ .compat_props = (GlobalProperty[]) {
+ PC_COMPAT_1_6,
+ { /* end of list */ }
+ },
.is_default = 1,
DEFAULT_MACHINE_OPTIONS,
};
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index 2f35d12..807b9ef 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -237,6 +237,10 @@ static QEMUMachine pc_q35_machine_v1_6 = {
.init = pc_q35_init,
.hot_add_cpu = pc_hot_add_cpu,
.max_cpus = 255,
+ .compat_props = (GlobalProperty[]) {
+ PC_COMPAT_1_6,
+ { /* end of list */ }
+ },
DEFAULT_MACHINE_OPTIONS,
};
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 3a0c4e3..812df4d 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -214,6 +214,13 @@ void pvpanic_init(ISABus *bus);
int e820_add_entry(uint64_t, uint64_t, uint32_t);
+#define PC_COMPAT_1_6 \
+ {\
+ .driver = "e1000",\
+ .property = "mitigation",\
+ .value = "off",\
+ }
+
#define PC_COMPAT_1_5 \
{\
.driver = "Conroe-" TYPE_X86_CPU,\
--
1.8.3.4
next prev parent reply other threads:[~2013-07-31 9:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-31 8:13 [Qemu-devel] [PATCH v5 0/2] e1000: add interrupt mitigation support Vincenzo Maffione
2013-07-31 8:13 ` [Qemu-devel] [PATCH v5 1/2] " Vincenzo Maffione
2013-07-31 10:05 ` Andreas Färber
2013-07-31 8:13 ` Vincenzo Maffione [this message]
2013-07-31 10:00 ` [Qemu-devel] [PATCH v5 2/2] i386/pc: introducing compat_props for pc-1.6 Andreas Färber
2013-07-31 9:56 ` [Qemu-devel] [PATCH v5 0/2] e1000: add interrupt mitigation support Andreas Färber
2013-07-31 10:19 ` Vincenzo Maffione
2013-07-31 11:20 ` Stefan Hajnoczi
2013-07-31 11:26 ` Andreas Färber
2013-07-31 13:39 ` Vincenzo Maffione
2013-08-01 9:38 ` Stefan Hajnoczi
2013-08-01 14:07 ` Andreas Färber
2013-08-01 20:17 ` Vincenzo Maffione
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1375258430-2120-3-git-send-email-v.maffione@gmail.com \
--to=v.maffione@gmail.com \
--cc=afaerber@suse.de \
--cc=aliguori@us.ibm.com \
--cc=g.lettieri@iet.unipi.it \
--cc=jasowang@redhat.com \
--cc=lersek@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rizzo@iet.unipi.it \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).