linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] Use vAPIC when doing IPI for PVHVM guests.
@ 2015-10-07 20:21 Konrad Rzeszutek Wilk
  2015-10-07 20:21 ` [RFC PATCH v1 1/2] xen/apic: Use vAPIC for IPI if the hardware supports it Konrad Rzeszutek Wilk
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Konrad Rzeszutek Wilk @ 2015-10-07 20:21 UTC (permalink / raw)
  To: boris.ostrovsky, joao.m.martins, david.vrabel, jgross,
	dario.faggioli, xen-devel, linux-kernel

Hey,

I was running some tools in which we would heavily do rescheduling
of events - and realized to my surprise that the event channels (and
the hypercall) would slow things down. If I used the vAPIC with its
IPI support (so no VMEXIT) I got much much better performance.

Now this is an RFC because:
 1). I hadn't verified from the xentrace  how much less VMEXITS we get.
    But I remember Boris's patches and they gave at least 10%.
    I think this will get the same performance or even better.

 2). I don't know what to do with migration. That is if the guest
    migrates to older hardware it needs to recheck this I presume?

 3). Should this be enabled by default? I did get better performance
   but that was synthetic.

Thoughts?


 Documentation/kernel-parameters.txt | 15 +++++------
 arch/x86/xen/enlighten.c            | 50 +++++++++++++++++++++++++++++++++----
 arch/x86/xen/smp.c                  | 22 ++++++++++++++--
 arch/x86/xen/spinlock.c             | 18 ++++---------
 arch/x86/xen/xen-ops.h              |  4 +++
 5 files changed, 82 insertions(+), 27 deletions(-)

Konrad Rzeszutek Wilk (2):
      xen/apic: Use vAPIC for IPI if the hardware supports it.
      xen_nopv: Combine a bunch of the PV features that can be disabled


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-08  9:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 20:21 [RFC PATCH] Use vAPIC when doing IPI for PVHVM guests Konrad Rzeszutek Wilk
2015-10-07 20:21 ` [RFC PATCH v1 1/2] xen/apic: Use vAPIC for IPI if the hardware supports it Konrad Rzeszutek Wilk
2015-10-07 20:32   ` kbuild test robot
2015-10-07 20:21 ` [RFC PATCH v1 2/2] xen_nopv: Combine a bunch of the PV features that can be disabled Konrad Rzeszutek Wilk
2015-10-07 21:29   ` Boris Ostrovsky
2015-10-08  5:05 ` [RFC PATCH] Use vAPIC when doing IPI for PVHVM guests Juergen Gross
2015-10-08  9:30   ` [Xen-devel] " Andrew Cooper

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).