Ui 20190110 patches
The following changes since commit e59dbbac0364344a3ad84c3497a98c56003d3fb8:
Merge remote-tracking branch 'remotes/philmd/tags/fw_cfg-20190104-pull-request' into staging (2019-01-04 18:23:13 +0000)
are available in the git repository at:
git://git.kraxel.org/qemu tags/ui-20190110-pull-request
for you to fetch changes up to 766a0a54faa97b8d4cbc7a6bd47f7ea78e625c19:
spice: Remove unused include (2019-01-10 08:55:36 +0100)
----------------------------------------------------------------
ui: bugfixes, drop keymap include support, drop dead code.
----------------------------------------------------------------
Frediano Ziglio (1):
spice: Remove unused include
Gerd Hoffmann (5):
egl-headless: add egl_create_context
keymaps: remove modifiers include
keymaps: drop nl-be map
keymaps: remove common include
keymaps: drop support for include files
Marc-André Lureau (1):
configure: bump spice-server required version to 0.12.5
Peter Maydell (1):
ui/console: Remove qemu_create_display_surface_guestmem()
configure | 4 +- Makefile | 4 +- include/ui/console.h | 4 -- include/ui/qemu-spice.h | 6 -- chardev/spice.c | 10 --- hw/display/qxl.c | 2 - ui/console.c | 36 ---------- ui/egl-headless.c | 10 ++- ui/keymaps.c | 7 +- ui/spice-core.c | 9 --- pc-bios/keymaps/common | 157 ---------------------------------------- pc-bios/keymaps/modifiers | 18 ----- pc-bios/keymaps/nl-be | 3 - pc-bios/keymaps/sl | 177 +++++++++++++++++++++++++++++++++++++++++++++- pc-bios/keymaps/sv | 176 ++++++++++++++++++++++++++++++++++++++++++++- 15 files changed, 367 insertions(+), 256 deletions(-) delete mode 100644 pc-bios/keymaps/common delete mode 100644 pc-bios/keymaps/modifiers delete mode 100644 pc-bios/keymaps/nl-be
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 5/8] keymaps: drop nl-be map
It doesn't define any keys, only includes "common". Which makes it effectively an "en-us" map.
Message-id: [email protected]
--- Makefile | 2 +- pc-bios/keymaps/nl-be | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 pc-bios/keymaps/nl-be
Makefile +1 -1
@@ -653,7 +653,7 @@ distclean: clean KEYMAPS=da en-gb et fr fr-ch is lt no pt-br sv \ ar de en-us fi fr-be hr it lv nl pl ru th \ -common de-ch es fo fr-ca hu ja mk nl-be pt sl tr \ +common de-ch es fo fr-ca hu ja mk pt sl tr \ bepo cz ifdef INSTALL_BLOBS
pc-bios/keymaps/nl-be deleted +0 -3
@@ -1,3 +0,0 @@ -# Dutch (Belgium) -map 0x813 -include common
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 8/8] spice: Remove unused include
In reply to Gerd HoffmannFrom: Frediano Ziglio <[email protected]>
The definitions in the header are not used.
Also this fixes porting SPICE to Windows where the header is not available.
Message-id: [email protected]
--- ui/spice-core.c | 1 - 1 file changed, 1 deletion(-)
ui/spice-core.c +0 -1
@@ -18,7 +18,6 @@#include "qemu/osdep.h" #include <spice.h> -#include <netdb.h> #include "sysemu/sysemu.h" #include "ui/qemu-spice.h"
Signature · 1 line
2.9.3
Re: [Qemu-devel] [PULL 8/8] spice: Remove unused include
Quoted 7 lines · Gerd Hoffmann
From: Frediano Ziglio <[email protected]>
The definitions in the header are not used.
Also this fixes porting SPICE to Windows where the header is not available.
Oh this misses "Since e16f4c8770b". Not a big deal.
Quoted 24 lines
Signed-off-by Frediano Ziglio <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>Message-id: [email protected]
Signed-off-by Gerd Hoffmann <[email protected]>--- ui/spice-core.c | 1 - 1 file changed, 1 deletion(-)ui/spice-core.c +0
-2@@ -18,7 +18,6 @@#include "qemu/osdep.h" #include <spice.h> -#include <netdb.h> #include "sysemu/sysemu.h" #include "ui/qemu-spice.h" --2.9.3
[Qemu-devel] [PULL 6/8] keymaps: remove common include
In reply to Gerd HoffmannCopy the content into the sl and sv files (the only ones left which are not generated by qemu-keymap).
Message-id: [email protected]
--- Makefile | 2 +- pc-bios/keymaps/common | 174 ------------------------------------------------ pc-bios/keymaps/sl | 177 ++++++++++++++++++++++++++++++++++++++++++++++++- pc-bios/keymaps/sv | 176 +++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 352 insertions(+), 177 deletions(-) delete mode 100644 pc-bios/keymaps/common
Makefile +1 -1
@@ -653,7 +653,7 @@ distclean: clean KEYMAPS=da en-gb et fr fr-ch is lt no pt-br sv \ ar de en-us fi fr-be hr it lv nl pl ru th \ -common de-ch es fo fr-ca hu ja mk pt sl tr \ +de-ch es fo fr-ca hu ja mk pt sl tr \ bepo cz ifdef INSTALL_BLOBS
pc-bios/keymaps/common deleted +0 -174
174 lines not on this page · raw message
pc-bios/keymaps/sl +176 -1
181 lines not on this page · raw message
pc-bios/keymaps/sv +175 -1
180 lines not on this page · raw message
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 1/8] egl-headless: add egl_create_context
In reply to Gerd HoffmannWe must set the correct context (via eglMakeCurrent) before calling qemu_egl_create_context, so we need a thin wrapper and can't hook qemu_egl_create_context directly as ->dpy_gl_ctx_create callback.
Message-id: [email protected]
--- ui/egl-headless.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
ui/egl-headless.c +9 -1
@@ -38,6 +38,14 @@ static void egl_gfx_switch(DisplayChangeListener *dcl, edpy->ds = new_surface; } +static QEMUGLContext egl_create_context (DisplayChangeListener *dcl, +QEMUGLParams *params) +{ +eglMakeCurrent (qemu_egl_display,EGL_NO_SURFACE ,EGL_NO_SURFACE , + qemu_egl_rn_ctx); +return qemu_egl_create_context (dcl, params); +} +static void egl_scanout_disable (DisplayChangeListener *dcl) {egl_dpy *edpy =container_of (dcl, egl_dpy, dcl);
@@ -150,7 +158,7 @@ static const DisplayChangeListenerOps egl_ops = { .dpy_gfx_update = egl_gfx_update, .dpy_gfx_switch = egl_gfx_switch, - .dpy_gl_ctx_create = qemu_egl_create_context, + .dpy_gl_ctx_create = egl_create_context, .dpy_gl_ctx_destroy = qemu_egl_destroy_context, .dpy_gl_ctx_make_current = qemu_egl_make_context_current, .dpy_gl_ctx_get_current = qemu_egl_get_current_context,
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 7/8] keymaps: drop support for include files
In reply to Gerd HoffmannMessage-id: [email protected]
--- ui/keymaps.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
ui/keymaps.c +3 -4
@@ -115,10 +115,9 @@ static int parse_keyboard_layout(kbd_layout_t *k,continue ; }if (!strncmp (line,"include " ,8 )) { -if (parse_keyboard_layout (k, table, line +8 , errp) <0 ) { - ret =-1 ; - goto out; - } +error_setg (errp,"keymap include files are not supported any more" ); + ret =-1 ; + goto out; }else {int offset =0 ; while (line[offset] != 0 &&
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 2/8] configure: bump spice-server required version to 0.12.5
In reply to Gerd HoffmannFrom: Marc-André Lureau <[email protected]>
Looking at chardev/spice.c code, I realize compilation was broken for a while with spice-server < 0.12.3. Let's bump required version to 0.12.5, released May 19 2014, instead of adding more #ifdef.
(this patch combines changes from an early version and some of Frediano "[PATCH 2/2] spice: Bump required spice-server version to 0.12.6")
According to repology, all the distros that are build target platforms for QEMU include it:
RHEL-7: 0.14.0
Debian (Stretch): 0.12.8
Debian (Jessie): 0.12.5
FreeBSD (ports): 0.14.0
OpenSUSE Leap 15: 0.14.0
Ubuntu (Xenial): 0.12.6Note that a previous version of this patch was bumping version to 0.12.6. Unfortunately, Debian Jessie (oldstable) is stuck with spice server 0.12.5, and QEMU should keep building until after 2y of current stable (Stretch), which will be around June 17th 2019. Qemu 4.1 should thus be free of bumping to spice-server 0.12.6 during 4.1 development cycle.
Message-id: [email protected]
--- configure | 4 ++-- include/ui/qemu-spice.h | 6 ------ chardev/spice.c | 10 ---------- hw/display/qxl.c | 2 -- ui/spice-core.c | 8 -------- 5 files changed, 2 insertions(+), 28 deletions(-)
configure +2 -2
@@ -4605,7 +4605,7 @@ int main(void) { spice_server_new(); return 0; } EOF spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null) spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null) - if $pkg_config --atleast-version=0.12.0 spice-server && \ + if $pkg_config --atleast-version=0.12.5 spice-server && \ $pkg_config --atleast-version=0.12.3 spice-protocol && \ compile_prog "$spice_cflags" "$spice_libs" ; then spice="yes"
@@ -4616,7 +4616,7 @@ EOF else if test "$spice" = "yes" ; then feature_not_found "spice" \ - "Install spice-server(>=0.12.0) and spice-protocol(>=0.12.3) devel" + "Install spice-server(>=0.12.5) and spice-protocol(>=0.12.3) devel" fi spice="no" fi
include/ui/qemu-spice.h +0 -6
@@ -46,13 +46,7 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,#else #define SPICE_NEEDS_SET_MM_TIME 0#endif - -#if SPICE_SERVER_VERSION >=0x000c02 void qemu_spice_register_ports (void ); -#else -static inline Chardev *qemu_chr_open_spice_port (const char *name) -{return NULL ; } -#endif #else /* CONFIG_SPICE */
chardev/spice.c +0 -10
@@ -77,7 +77,6 @@ static int vmc_read(SpiceCharDeviceInstance *sin, uint8_t *buf, int len)return bytes; } -#if SPICE_SERVER_VERSION >=0x000c02 static void vmc_event (SpiceCharDeviceInstance *sin,uint8_t event) {SpiceChardev *scd =container_of (sin, SpiceChardev, sin);
@@ -95,7 +94,6 @@ static void vmc_event(SpiceCharDeviceInstance *sin, uint8_t event)trace_spice_vmc_event (chr_event);qemu_chr_be_event (chr, chr_event); } -#endif static void vmc_state (SpiceCharDeviceInstance *sin,int connected) {
@@ -119,9 +117,7 @@ static SpiceCharDeviceInterface vmc_interface = { .state = vmc_state, .write = vmc_write, .read = vmc_read, -#if SPICE_SERVER_VERSION >=0x000c02 .event = vmc_event, -#endif #if SPICE_SERVER_VERSION >=0x000c06 .flags = SPICE_CHAR_DEVICE_NOTIFY_WRITABLE,#endif
@@ -223,9 +219,7 @@ static void char_spice_finalize(Object *obj) }g_free ((char *)s->sin.subtype); -#if SPICE_SERVER_VERSION >=0x000c02 g_free ((char *)s->sin.portname); -#endif }static void spice_vmc_set_fe_open (struct Chardev *chr,int fe_open)
@@ -240,7 +234,6 @@ static void spice_vmc_set_fe_open(struct Chardev *chr, int fe_open)static void spice_port_set_fe_open (struct Chardev *chr,int fe_open) { -#if SPICE_SERVER_VERSION >=0x000c02 SpiceChardev *s =SPICE_CHARDEV (chr);if (fe_open) {
@@ -248,7 +241,6 @@ static void spice_port_set_fe_open(struct Chardev *chr, int fe_open) }else {spice_server_port_event (&s->sin,SPICE_PORT_EVENT_CLOSED ); } -#endif }static void spice_chr_accept_input (struct Chardev *chr)
@@ -298,7 +290,6 @@ static void qemu_chr_open_spice_vmc(Chardev *chr,chr_open (chr, type); } -#if SPICE_SERVER_VERSION >=0x000c02 static void qemu_chr_open_spice_port(Chardev *chr, ChardevBackend *backend, bool *be_opened,
@@ -331,7 +322,6 @@ void qemu_spice_register_ports(void)vmc_register_interface (s); } } -#endif static void qemu_chr_parse_spice_vmc (QemuOpts *opts,ChardevBackend *backend,Error **errp)
hw/display/qxl.c +0 -2
@@ -1189,9 +1189,7 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d)return ; }trace_qxl_enter_vga_mode (d->id); -#if SPICE_SERVER_VERSION >=0x000c03 /* release 0.12.3 */ spice_qxl_driver_unload (&d->ssd.qxl); -#endif graphic_console_set_hwops (d->ssd.dcl.con, d->vga.hw_ops, &d->vga);update_displaychangelistener (&d->ssd.dcl,GUI_REFRESH_INTERVAL_DEFAULT );qemu_spice_create_host_primary (&d->ssd);
ui/spice-core.c +0 -8
@@ -745,13 +745,7 @@ void qemu_spice_init(void) }if (qemu_opt_get_bool (opts,"disable-agent-file-xfer" ,0 )) { -#if SPICE_SERVER_VERSION >=0x000c04 spice_server_set_agent_file_xfer (spice_server, false); -#else -error_report ("this qemu build does not support the " -"\"disable-agent-file-xfer\" option" ); -exit (1 ); -#endif } compression =SPICE_IMAGE_COMPRESS_AUTO_GLZ ;
@@ -817,9 +811,7 @@ void qemu_spice_init(void)g_free (x509_cert_file);g_free (x509_cacert_file); -#if SPICE_SERVER_VERSION >=0x000c02 qemu_spice_register_ports (); -#endif #ifdef HAVE_SPICE_GL if (qemu_opt_get_bool (opts,"gl" ,0 )) {
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 3/8] ui/console: Remove qemu_create_display_surface_guestmem()
In reply to Gerd HoffmannFrom: Peter Maydell <[email protected]>
The qemu_create_display_surface_guestmem() function was added in commit a77549b3ffcc24c32ee4e but apparently never used. Remove it.
(The API of this function is in any case awkward as a generic
function: it assumes that a physical address uniquely identifies a piece of memory in the system, which is mostly but not always true.)
Message-id: [email protected]
--- include/ui/console.h | 4 ---- ui/console.c | 36 ------------------------------------ 2 files changed, 40 deletions(-)
include/ui/console.h +0 -4
@@ -257,10 +257,6 @@ DisplaySurface *qemu_create_displaysurface_from(int width, int height,pixman_format_code_t format, int linesize, uint8_t *data);DisplaySurface *qemu_create_displaysurface_pixman (pixman_image_t *image); -DisplaySurface *qemu_create_displaysurface_guestmem (int width,int height, -pixman_format_code_t format, -int linesize, -uint64_t addr);DisplaySurface *qemu_create_message_surface (int w,int h,const char *msg);PixelFormat qemu_default_pixelformat (int bpp);
ui/console.c +0 -36
@@ -1385,42 +1385,6 @@ DisplaySurface *qemu_create_displaysurface_pixman(pixman_image_t *image)return surface; } -static void qemu_unmap_displaysurface_guestmem (pixman_image_t *image, -void *unused) -{ -void *data =pixman_image_get_data (image); -uint32_t size =pixman_image_get_stride (image) * -pixman_image_get_height (image); -cpu_physical_memory_unmap (data, size,0 ,0 ); -} - -DisplaySurface *qemu_create_displaysurface_guestmem (int width,int height, -pixman_format_code_t format, -int linesize,uint64_t addr) -{ -DisplaySurface *surface; -hwaddr size; -void *data; - -if (linesize ==0 ) { - linesize = width *PIXMAN_FORMAT_BPP (format) /8 ; - } - - size = (hwaddr )linesize * height; - data =cpu_physical_memory_map (addr, &size,0 ); -if (size != (hwaddr )linesize * height) { -cpu_physical_memory_unmap (data, size,0 ,0 ); -return NULL ; - } - - surface =qemu_create_displaysurface_from - (width, height, format, linesize, data); -pixman_image_set_destroy_function - (surface->image, qemu_unmap_displaysurface_guestmem,NULL ); - -return surface; -} -DisplaySurface *qemu_create_message_surface (int w,int h,const char *msg) {
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 4/8] keymaps: remove modifiers include
In reply to Gerd Hoffmann"common" is the only file using it, so we can just include it directly.
Message-id: [email protected]
--- Makefile | 2 +- pc-bios/keymaps/common | 19 ++++++++++++++++++- pc-bios/keymaps/modifiers | 18 ------------------ 3 files changed, 19 insertions(+), 20 deletions(-) delete mode 100644 pc-bios/keymaps/modifiers
Makefile +1 -1
@@ -651,7 +651,7 @@ distclean: clean rm -Rf .sdk if test -f dtc/version_gen.h; then $(MAKE) $(DTC_MAKE_ARGS) clean; fi -KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ +KEYMAPS=da en-gb et fr fr-ch is lt no pt-br sv \ ar de en-us fi fr-be hr it lv nl pl ru th \ common de-ch es fo fr-ca hu ja mk nl-be pt sl tr \ bepo cz
pc-bios/keymaps/common +18 -1
@@ -1,4 +1,21 @@ -include modifiers +Shift_R 0x36 +Shift_L 0x2a + +Alt_R 0xb8 +Mode_switch 0xb8 +ISO_Level3_Shift 0xb8 +Alt_L 0x38 + +Control_R 0x9d +Control_L 0x1d + +# Translate Super to Windows keys. +# This is hardcoded. See documentation for details. +Super_R 0xdc +Super_L 0xdb + +# Translate Menu to the Windows Application key. +Menu 0xdd # # Top row
pc-bios/keymaps/modifiers deleted +0 -18
@@ -1,18 +0,0 @@ -Shift_R 0x36 -Shift_L 0x2a - -Alt_R 0xb8 -Mode_switch 0xb8 -ISO_Level3_Shift 0xb8 -Alt_L 0x38 - -Control_R 0x9d -Control_L 0x1d - -# Translate Super to Windows keys. -# This is hardcoded. See documentation for details. -Super_R 0xdc -Super_L 0xdb - -# Translate Menu to the Windows Application key. -Menu 0xdd
Signature · 1 line
2.9.3
Peter Maydell
AppliedQuoted 28 lines · Gerd Hoffmann
The following changes since commit
e59dbbac0364344a3ad84c3497a98c56003d3fb8:Merge remote-tracking branch 'remotes/philmd/tags/fw_cfg-20190104-pull-request' into staging (2019-01-04 18:23:13 +0000)
are available in the git repository at:
git://git.kraxel.org/qemutags/ui-20190110-pull-requestfor you to fetch changes up to
766a0a54faa97b8d4cbc7a6bd47f7ea78e625c19:spice: Remove unused include (2019-01-10 08:55:36 +0100)
----------------------------------------------------------------
ui: bugfixes, drop keymap include support, drop dead code.----------------------------------------------------------------
Frediano Ziglio (1):
spice: Remove unused includeGerd Hoffmann (5):
egl-headless: addegl_create_context
keymaps: remove modifiers include
keymaps: drop nl-be map
keymaps: remove common include
keymaps: drop support for include files
Quoted 5 lines
Marc-André Lureau (1):
configure: bump spice-server required version to 0.12.5Peter Maydell (1):
ui/console: Removeqemu_create_display_surface_guestmem()
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.0
for any user-visible changes. (In particular we have a section for changes in the required versions of dependent libraries etc).
-- PMM