]> Git Repo - qemu.git/commit - hw/vhost.c
vhost: optimize out no-change assignment
authorMichael S. Tsirkin <[email protected]>
Thu, 31 Mar 2011 13:45:51 +0000 (15:45 +0200)
committerMichael S. Tsirkin <[email protected]>
Thu, 7 Apr 2011 10:30:15 +0000 (13:30 +0300)
commit4e789564d30a9c5f9408657857560a88386b0ac4
treea43046b0d27c913b9a296e1a28f92c7a66c4b034
parentf5a4e64f8e12d088a11b9a2743875cc88671e13a
vhost: optimize out no-change assignment

Cirrus VGA (at least) calls register memory region
with the same values again and again. The
registration in vhost-net slows this a lot,
optimize by checking that the same data is already registered.

Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/vhost.c
This page took 0.027326 seconds and 4 git commands to generate.