summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorPeter Maydell2016-04-20 17:16:55 +0200
committerPeter Maydell2016-04-20 17:16:55 +0200
commitfa59dd95829bc33d591274e98db5bb762ba1a2a0 (patch)
tree14bbbd1d70172c7134942c01d20162bff8f14350 /hw
parentMerge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2016-04-19-tag' in... (diff)
parentxenfb: use the correct condition to avoid excessive looping (diff)
downloadqemu-fa59dd95829bc33d591274e98db5bb762ba1a2a0.tar.gz
qemu-fa59dd95829bc33d591274e98db5bb762ba1a2a0.tar.xz
qemu-fa59dd95829bc33d591274e98db5bb762ba1a2a0.zip
Merge remote-tracking branch 'remotes/sstabellini/tags/xen-2016-04-20' into staging
Xen 2016/04/20 # gpg: Signature made Wed 20 Apr 2016 12:08:56 BST using RSA key ID 70E1AE90 # gpg: Good signature from "Stefano Stabellini <stefano.stabellini@eu.citrix.com>" * remotes/sstabellini/tags/xen-2016-04-20: xenfb: use the correct condition to avoid excessive looping Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/display/xenfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c
index 40b096afa2..9866dfda5f 100644
--- a/hw/display/xenfb.c
+++ b/hw/display/xenfb.c
@@ -775,7 +775,7 @@ static void xenfb_handle_events(struct XenFB *xenfb)
prod = page->out_prod;
out_cons = page->out_cons;
- if (prod - out_cons >= XENFB_OUT_RING_LEN) {
+ if (prod - out_cons > XENFB_OUT_RING_LEN) {
return;
}
xen_rmb(); /* ensure we see ring contents up to prod */