Skip to content

xen: evtchn and gntdev device fixes and perf improvements

David Vrabel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xen/evtchn: avoid a deadlock when unbinding an event channeldrivers/xen/evtchn.c+2 -192 replies
2/3xen/p2m: avoid unneccesary TLB flush in m2p_remove_override()arch/x86/xen/p2m.c+0 -11 reply
3/3xen/evtchn: improve scalability by using per-user locksdrivers/xen/evtchn.c+112 -800 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchStefano Stabellini
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] xen: evtchn and gntdev device fixes and perf improvements

This series includes a small collection of fixes improving the evtchn and gntdev devices.

Patch 1 fixes a bug in the evtchn device that may cause deadlocks when unbinding events or closing the device. You may wish to consider it for stable.

Patch 2 is a (very) minor performance improvement to m2p_remove_override() when used by the the gntdev device. The TLB flush that it did not have any significant performance cost (since it's a local CPU and single address only).

Patch 3 improves the scalability of the evtchn device when it is used by multiple processes (e.g., multiple qemus). As you can see from the graph[1] it is a signficant improvement but still less than ideal. I suspect that this may be due to the per-domain event lock inside Xen rather than anything kernel-side.

The graphed data was collected from dom0 with 8 VCPUs on a host with 8 CPUs.

David

[1] http://xenbits.xen.org/people/dvrabel/evtchn-device-scalability.png