From: "Andreas Färber" <afaerber@suse.de>
To: Vincenzo Maffione <v.maffione@gmail.com>
Cc: aliguori@us.ibm.com, mst@redhat.com, rizzo@iet.unipi.it,
jasowang@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com,
pbonzini@redhat.com, g.lettieri@iet.unipi.it, lersek@redhat.com
Subject: Re: [Qemu-devel] [PATCH v5 1/2] e1000: add interrupt mitigation support
Date: Wed, 31 Jul 2013 12:05:34 +0200 [thread overview]
Message-ID: <51F8E16E.5010201@suse.de> (raw)
In-Reply-To: <1375258430-2120-2-git-send-email-v.maffione@gmail.com>
Am 31.07.2013 10:13, schrieb Vincenzo Maffione:
> This patch partially implements the e1000 interrupt mitigation mechanisms.
> Using a single QEMUTimer, it emulates the ITR register (which is the newer
> mitigation register, recommended by Intel) and approximately emulates
> RADV and TADV registers. TIDV and RDTR register functionalities are not
> emulated (RDTR is only used to validate RADV, according to the e1000 specs).
>
> RADV, TADV, TIDV and RDTR registers make up the older e1000 mitigation
> mechanism and would need a timer each to be completely emulated. However,
> a single timer has been used in order to reach a good compromise between
> emulation accuracy and simplicity/efficiency.
>
> The implemented mechanism can be enabled/disabled specifying the command
> line e1000-specific boolean parameter "mit", e.g.
"mitigation" in example and property definitions below.
>
> qemu-system-x86_64 -device e1000,mitigation=on,... ...
>
> For more information, see the Software developer's manual at
> http://download.intel.com/design/network/manuals/8254x_GBe_SDM.pdf.
>
> Interrupt mitigation boosts performance when the guest suffers from
> an high interrupt rate (i.e. receiving short UDP packets at high packet
> rate). For some numerical results see the following link
> http://info.iet.unipi.it/~luigi/papers/20130520-rizzo-vm.pdf
>
> Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
> ---
> hw/net/e1000.c | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 128 insertions(+), 3 deletions(-)
>
> diff --git a/hw/net/e1000.c b/hw/net/e1000.c
> index fdb1f89..32014c2 100644
> --- a/hw/net/e1000.c
> +++ b/hw/net/e1000.c
[...]
> @@ -1385,6 +1508,8 @@ static Property e1000_properties[] = {
> DEFINE_NIC_PROPERTIES(E1000State, conf),
> DEFINE_PROP_BIT("autonegotiation", E1000State,
> compat_flags, E1000_FLAG_AUTONEG_BIT, true),
> + DEFINE_PROP_BIT("mitigation", E1000State,
> + compat_flags, E1000_FLAG_MIT_BIT, true),
> DEFINE_PROP_END_OF_LIST(),
> };
>
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2013-07-31 10:05 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 [this message]
2013-07-31 8:13 ` [Qemu-devel] [PATCH v5 2/2] i386/pc: introducing compat_props for pc-1.6 Vincenzo Maffione
2013-07-31 10:00 ` 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=51F8E16E.5010201@suse.de \
--to=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 \
--cc=v.maffione@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.