mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJZSnNTAAoJEEy22O7T6HE4pb0QAIXAUsnGAKygDj56yw7Nwswo sliRzffGQLOTheHd1Eb4fQu/giz1tb+nyPn2TExt3wGhF2VQOLS1aTrwzmtlF3gF NoqCz5cdsmK64GwQpPBPNQiBsh45t7jCgTNWB7uk4xyN2fsLAmHZmGmrHiIWMW8u Ij+Dj+pkzUOsOXcJQqrN/SbEQ7NrB6PAAaCC8tn7fsFmfVFowsnJ3aHLKZc6+e9f eR6aCu25Xx8GbWECCVk6TpAh8g99EMD6IbyEdSjPabqDvLCeXFbrc9iHwhrul4CH 5C3S22X8dMcvITBxRRKeHtXnUTpE5foiaGsO+dN21GbIDLkCW24Qty1jzHsjgLOv 49ZwNEFz7ZDQOyVtxJY1sdxh+xFeJ3GYh+tAVDTtLv5xpz6ZUCOgsDz9Y/x/e4BH XzduKTdesKpBC9mjHxxCppNUK929WxMjjuNaoJcFsoj0qFCBTMEdv0w+RzAhhprI nC6rfNzfZWR+ooqVKTxjYXaVtTnstggkis9oK8RX5SjHjqnYbllMpIiYHgrYaJMv U7E4w1v8hLBl0eze5Qh3+BW6XY/0q9cHnP1GW2JDCOWI0vqHJP6Q+xXd+I4CqzyX 9GgFWuNmhn/a+OvGwgULIEb5ezUXapK3q0Sj5rNz/JDJHeWcQ87txhz0uZ+iJpsg mns8+8pXX6XHgkovtoeH =y0pe -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/kraxel/tags/queue/ui-pull-request' into staging # gpg: Signature made Wed 21 Jun 2017 14:23:31 BST # gpg: using RSA key 0x4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/queue/ui-pull-request: ui: Remove inclusion of "hw/qdev.h" console: remove do_safe_dpy_refresh gtk: use framebuffer helper functions. sdl2: use framebuffer helper functions. egl-headless: use framebuffer helper functions. egl-helpers: add helpers to handle opengl framebuffers Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
22a9e1fd63
11 changed files with 138 additions and 157 deletions
25
ui/console.c
25
ui/console.c
|
@ -1579,36 +1579,13 @@ bool dpy_gfx_check_format(QemuConsole *con,
|
|||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Safe DPY refresh for TCG guests. We use the exclusive mechanism to
|
||||
* ensure the TCG vCPUs are quiescent so we can avoid races between
|
||||
* dirty page tracking for direct frame-buffer access by the guest.
|
||||
*
|
||||
* This is a temporary stopgap until we've fixed the dirty tracking
|
||||
* races in display adapters.
|
||||
*/
|
||||
static void do_safe_dpy_refresh(DisplayChangeListener *dcl)
|
||||
{
|
||||
qemu_mutex_unlock_iothread();
|
||||
start_exclusive();
|
||||
qemu_mutex_lock_iothread();
|
||||
dcl->ops->dpy_refresh(dcl);
|
||||
qemu_mutex_unlock_iothread();
|
||||
end_exclusive();
|
||||
qemu_mutex_lock_iothread();
|
||||
}
|
||||
|
||||
static void dpy_refresh(DisplayState *s)
|
||||
{
|
||||
DisplayChangeListener *dcl;
|
||||
|
||||
QLIST_FOREACH(dcl, &s->listeners, next) {
|
||||
if (dcl->ops->dpy_refresh) {
|
||||
if (tcg_enabled()) {
|
||||
do_safe_dpy_refresh(dcl);
|
||||
} else {
|
||||
dcl->ops->dpy_refresh(dcl);
|
||||
}
|
||||
dcl->ops->dpy_refresh(dcl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue