qemu-xen patches: upstream review changes.
cover qemu-xen patches: upstream review changes.
Hi,
Here comes a series of patches for qemu-xen, making the code identical to the xen support patches being submitted to upstream qemu. The review process on qemu-devel resulted in a number of fixes and cleanups in the backend code, this is where most of the changes come from.
There are also some xenfb changes due to displaystate reorganization and xenfb being merged in steps due to that.
Changes are also available for pull from fromgit://git.et.redhat.com/qemu-kraxel.git, branch qx.misc.v6
cheers,
Gerd
PATCH 1/7 xenfb update.
--- hw/xen_backend.h | 2 +- hw/xen_machine_pv.c | 2 +- hw/xenfb.c | 195 ++++++++++++++++++++++++++++++--------------------- 3 files changed, 116 insertions(+), 83 deletions(-)
hw/xen_backend.h +1 -1
@@ -89,6 +89,6 @@ extern struct XenDevOps xen_console_ops; /* xen_console.c */extern struct XenDevOps xen_kbdmouse_ops;/* xen_framebuffer.c */ extern struct XenDevOps xen_framebuffer_ops;/* xen_framebuffer.c */ -void xen_set_display (int domid); +void xen_init_display (int domid);#endif /* QEMU_HW_XEN_BACKEND_H */
hw/xen_machine_pv.c +1 -1
@@ -71,7 +71,7 @@ static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size,xen_be_register ("vfb" , &xen_framebuffer_ops);/* setup framebuffer */ -xen_set_display (xen_domid); +xen_init_display (xen_domid); }QEMUMachine xenpv_machine = {
hw/xenfb.c +114 -81
309 lines not on this page · raw message
Signature · 1 line
1.6.2.2
PATCH 2/7 merge review: delete comment
In reply to Gerd Hoffmann--- hw/xen_machine_pv.c | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-)
hw/xen_machine_pv.c +0 -9
@@ -82,12 +82,3 @@ QEMUMachine xenpv_machine = { .max_cpus = 1, .nodisk_ok = 1, }; - -/* -* Local variables: -* indent-tabs-mode: nil -* c-indent-level: 4 -* c-basic-offset: 4 -* tab-width: 4 -* End: -*/
Signature · 1 line
1.6.2.2
PATCH 3/7 merge review: fix fsf address & compare style
In reply to Gerd Hoffmannchanges coming from upstream merge review (style only, no code changes).
- Update FSF address.
- Fix strage compare style.
--- hw/xen_backend.c | 54 +++++++++++++++++++++++++------------------------- hw/xen_console.c | 12 +++++----- hw/xen_machine_pv.c | 2 +- hw/xenfb.c | 35 +++++++++++++++++---------------- 4 files changed, 52 insertions(+), 51 deletions(-)
hw/xen_backend.c +27 -27
@@ -11,9 +11,9 @@* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* You should have received a copy of the GNU General Public License along +* with this program; if not, write to the Free Software Foundation, Inc., +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /*
@@ -162,7 +162,7 @@ struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev)continue ;if (xendev->dev != dev)continue ; -if (0 !=strcmp (xendev->type, type)) +if (strcmp (xendev->type, type) !=0 )continue ;return xendev; }
@@ -278,8 +278,8 @@ static struct XenDevice *xen_be_del_xendev(int dom, int dev)*/ static void xen_be_backend_changed (struct XenDevice *xendev,const char *node) { -if (NULL == node ||0 ==strcmp (node,"online" )) { -if (-1 ==xenstore_read_be_int (xendev,"online" , &xendev->online)) +if (node ==NULL ||strcmp (node,"online" ) ==0 ) { +if (xenstore_read_be_int (xendev,"online" , &xendev->online) ==-1 ) xendev->online =0 ; }
@@ -294,8 +294,8 @@ static void xen_be_frontend_changed(struct XenDevice *xendev, const char *node) {int fe_state; -if (NULL == node ||0 ==strcmp (node,"state" )) { -if (-1 ==xenstore_read_fe_int (xendev,"state" , &fe_state)) +if (node ==NULL ||strcmp (node,"state" ) ==0 ) { +if (xenstore_read_fe_int (xendev,"state" , &fe_state) ==-1 ) fe_state = XenbusStateUnknown;if (xendev->fe_state != fe_state) xen_be_printf(xendev, 1, "frontend state: %s -> %s\n",
@@ -303,7 +303,7 @@ static void xen_be_frontend_changed(struct XenDevice *xendev, const char *node) xenbus_strstate(fe_state)); xendev->fe_state = fe_state; } -if (NULL == node ||0 ==strcmp (node,"protocol" )) { +if (node ==NULL ||strcmp (node,"protocol" ) ==0 ) {qemu_free (xendev->protocol); xendev->protocol =xenstore_read_fe_str (xendev,"protocol" );if (xendev->protocol)
@@ -333,7 +333,7 @@ static int xen_be_try_setup(struct XenDevice *xendev)char token[XEN_BUFSIZE ];int be_state; -if (-1 ==xenstore_read_be_int (xendev,"state" , &be_state)) { +if (xenstore_read_be_int (xendev,"state" , &be_state) ==-1 ) {xen_be_printf (xendev,0 ,"reading backend state failed\n" );return -1 ; }
@@ -345,7 +345,7 @@ static int xen_be_try_setup(struct XenDevice *xendev) } xendev->fe =xenstore_read_be_str (xendev,"frontend" ); -if (NULL == xendev->fe) { +if (xendev->fe ==NULL ) {xen_be_printf (xendev,0 ,"reading frontend path failed\n" );return -1 ; }
@@ -383,7 +383,7 @@ static int xen_be_try_init(struct XenDevice *xendev)if (xendev->ops->init) rc = xendev->ops->init (xendev); -if (0 != rc) { +if (rc !=0 ) {xen_be_printf (xendev,1 ,"init() failed\n" );return rc; }
@@ -416,7 +416,7 @@ static int xen_be_try_connect(struct XenDevice *xendev)if (xendev->ops->connect) rc = xendev->ops->connect (xendev); -if (0 != rc) { +if (rc !=0 ) {xen_be_printf (xendev,0 ,"connect() failed\n" );return rc; }
@@ -485,7 +485,7 @@ void xen_be_check_state(struct XenDevice *xendev)default : rc =-1 ; } -if (0 != rc) +if (rc !=0 )break ; } }
@@ -515,7 +515,7 @@ static int xenstore_scan(const char *type, int dom, struct XenDevOps *ops)return 0 ;for (j =0 ; j < cdev; j++) { xendev =xen_be_get_xendev (type, dom,atoi (dev[j]), ops); -if (NULL == xendev) +if (xendev ==NULL )continue ;xen_be_check_state (xendev); }
@@ -533,14 +533,14 @@ static void xenstore_update_be(char *watch, char *type, int dom, dom0 =xs_get_domain_path (xenstore,0 ); len =snprintf (path,sizeof (path),"%s/backend/%s/%d" , dom0, type, dom);free (dom0); -if (0 !=strncmp (path, watch, len)) +if (strncmp (path, watch, len) !=0 )return ; -if (2 !=sscanf (watch+len,"/%u/%255s" , &dev, path)) { +if (sscanf (watch+len,"/%u/%255s" , &dev, path) !=2 ) {strcpy (path,"" ); -if (1 !=sscanf (watch+len,"/%u" , &dev)) +if (sscanf (watch+len,"/%u" , &dev) !=1 ) dev =-1 ; } -if (-1 == dev) +if (dev ==-1 )return ;if (0 ) {
@@ -549,7 +549,7 @@ static void xenstore_update_be(char *watch, char *type, int dom, } xendev =xen_be_get_xendev (type, dom, dev, ops); -if (NULL != xendev) { +if (xendev !=NULL ) {xen_be_backend_changed (xendev, path);xen_be_check_state (xendev); }
@@ -561,7 +561,7 @@ static void xenstore_update_fe(char *watch, struct XenDevice *xendev)unsigned int len; len =strlen (xendev->fe); -if (0 !=strncmp (xendev->fe, watch, len)) +if (strncmp (xendev->fe, watch, len) !=0 )return ;if (watch[len] !='/' )return ;
@@ -578,13 +578,13 @@ static void xenstore_update(void *unused)unsigned int dom, count; vec =xs_read_watch (xenstore, &count); -if (NULL == vec) +if (vec ==NULL ) goto cleanup; -if (3 ==sscanf (vec[XS_WATCH_TOKEN ],"be:%" PRIxPTR":%d:%" PRIxPTR, - &type, &dom, &ops)) +if (sscanf (vec[XS_WATCH_TOKEN ],"be:%" PRIxPTR":%d:%" PRIxPTR, + &type, &dom, &ops) ==3 )xenstore_update_be (vec[XS_WATCH_PATH ], (void *)type, dom, (void *)ops); -if (1 ==sscanf (vec[XS_WATCH_TOKEN ],"fe:%" PRIxPTR, &ptr)) +if (sscanf (vec[XS_WATCH_TOKEN ],"fe:%" PRIxPTR, &ptr) ==1 )xenstore_update_fe (vec[XS_WATCH_PATH ], (void *)ptr); cleanup:
@@ -622,7 +622,7 @@ int xen_be_init(void) goto err; xen_xc =xc_interface_open (); -if (-1 == xen_xc) { +if (xen_xc ==-1 ) {fprintf (stderr,"can't open xen interface\n" ); goto err; }
@@ -647,7 +647,7 @@ int xen_be_bind_evtchn(struct XenDevice *xendev)return 0 ; xendev->local_port =xc_evtchn_bind_interdomain (xendev->evtchndev, xendev->dom, xendev->remote_port); -if (-1 == xendev->local_port) { +if (xendev->local_port ==-1 ) {xen_be_printf (xendev,0 ,"xc_evtchn_bind_interdomain failed\n" );return -1 ; }
hw/xen_console.c +6 -6
@@ -15,9 +15,9 @@* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* You should have received a copy of the GNU General Public License along +* with this program; if not, write to the Free Software Foundation, Inc., +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include <stdlib.h>
@@ -214,11 +214,11 @@ static int con_connect(struct XenDevice *xendev) struct XenConsole *con = container_of(xendev, struct XenConsole, xendev);int limit; -if (-1 ==xenstore_read_int (con->console,"ring-ref" , &con->ring_ref)) +if (xenstore_read_int (con->console,"ring-ref" , &con->ring_ref) ==-1 )return -1 ; -if (-1 ==xenstore_read_int (con->console,"port" , &con->xendev.remote_port)) +if (xenstore_read_int (con->console,"port" , &con->xendev.remote_port) ==-1 )return -1 ; -if (0 ==xenstore_read_int (con->console,"limit" , &limit)) +if (xenstore_read_int (con->console,"limit" , &limit) ==0 ) con->buffer.max_capacity = limit; con->sring = xc_map_foreign_range(xen_xc, con->xendev.dom,
hw/xen_machine_pv.c +1 -1
@@ -62,7 +62,7 @@ static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size, env->halted =1 ;/* Initialize backend core & drivers */ -if (-1 ==xen_be_init ()) { +if (xen_be_init () !=0 ) {fprintf (stderr,"%s: xen backend core setup failed\n" , __FUNCTION__);exit (1 ); }
hw/xenfb.c +18 -17
@@ -20,9 +20,9 @@* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* You should have received a copy of the GNU General Public License along +* with this program; if not, write to the Free Software Foundation, Inc., +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include <stdarg.h>
@@ -102,15 +102,15 @@ static int common_bind(struct common *c) {int mfn; -if (-1 ==xenstore_read_fe_int (&c->xendev,"page-ref" , &mfn)) +if (xenstore_read_fe_int (&c->xendev,"page-ref" , &mfn) ==-1 )return -1 ; -if (-1 ==xenstore_read_fe_int (&c->xendev,"event-channel" , &c->xendev.remote_port)) +if (xenstore_read_fe_int (&c->xendev,"event-channel" , &c->xendev.remote_port) ==-1 )return -1 ; c->page =xc_map_foreign_range (xen_xc, c->xendev.dom,XC_PAGE_SIZE ,PROT_READ |PROT_WRITE , mfn); -if (NULL == c->page) +if (c->page ==NULL )return -1 ;xen_be_bind_evtchn (&c->xendev);
@@ -366,11 +366,12 @@ static int input_connect(struct XenDevice *xendev) struct XenInput *in = container_of(xendev, struct XenInput, c.xendev);int rc; -if (-1 ==xenstore_read_fe_int (xendev,"request-abs-pointer" , &in->abs_pointer_wanted)) +if (xenstore_read_fe_int (xendev,"request-abs-pointer" , + &in->abs_pointer_wanted) ==-1 ) in->abs_pointer_wanted =0 ; rc =common_bind (&in->c); -if (0 != rc) +if (rc !=0 )return rc;qemu_add_kbd_event_handler (xenfb_key_event, in);
@@ -450,7 +451,7 @@ static int xenfb_map_fb(struct XenFB *xenfb) ptr64 = (void *)page->pd;#endif if (ptr32) { -if (0 == ptr32[1 ]) { +if (ptr32[1 ] ==0 ) { mode =32 ; pd = ptr32; }else {
@@ -459,12 +460,12 @@ static int xenfb_map_fb(struct XenFB *xenfb) } }#if defined(__x86_64__) - } else if (0 == strcmp(protocol, XEN_IO_PROTO_ABI_X86_32)) { + } else if (strcmp(protocol, XEN_IO_PROTO_ABI_X86_32) == 0) {/* 64bit dom0, 32bit domU */ mode =32 ; pd = ((void *)page->pd) -4 ;#elif defined(__i386__) - }else if (0 ==strcmp (protocol,XEN_IO_PROTO_ABI_X86_64 )) { + }else if (strcmp (protocol,XEN_IO_PROTO_ABI_X86_64 ) ==0 ) {/* 32bit dom0, 64bit domU */ mode =64 ; pd = ((void *)page->pd) +4 ;
@@ -874,22 +875,22 @@ static int fb_connect(struct XenDevice *xendev)int videoram;int rc; -if (-1 ==xenstore_read_fe_int (xendev,"videoram" , &videoram)) +if (xenstore_read_fe_int (xendev,"videoram" , &videoram) ==-1 ) videoram =0 ; rc =common_bind (&fb->c); -if (0 != rc) +if (rc !=0 )return rc; fb_page = fb->c.page; rc =xenfb_configure_fb (fb, videoram *1024 *1024U , fb_page->width, fb_page->height, fb_page->depth, fb_page->mem_length,0 , fb_page->line_length); -if (0 != rc) +if (rc !=0 )return rc; rc =xenfb_map_fb (fb); -if (0 != rc) +if (rc !=0 )return rc;#if 0 /* handled in xen_init_display() for now */
@@ -903,7 +904,7 @@ static int fb_connect(struct XenDevice *xendev) }#endif -if (-1 ==xenstore_read_fe_int (xendev,"feature-update" , &fb->feature_update)) +if (xenstore_read_fe_int (xendev,"feature-update" , &fb->feature_update) ==-1 ) fb->feature_update =0 ;if (fb->feature_update)xenstore_write_be_int (xendev,"request-update" ,1 );
@@ -939,7 +940,7 @@ static void fb_frontend_changed(struct XenDevice *xendev, const char *node)* to connected. We must trigger the watch a second time to * workaround a frontend bug. */ -if (0 == fb->bug_trigger &&0 ==strcmp (node,"state" ) && +if (fb->bug_trigger ==0 &&strcmp (node,"state" ) ==0 && xendev->fe_state == XenbusStateConnected && xendev->be_state == XenbusStateConnected) {xen_be_printf (xendev,2 ,"re-trigger connected (frontend bug)\n" );
Signature · 1 line
1.6.2.2
PATCH 4/7 merge review: no malloc failure checks.
In reply to Gerd Hoffmannqemu_malloc() will never return errors. It will abort instead. Thus no checks for failure are needed.
--- hw/xen_backend.c | 14 ++++++++++---- hw/xenfb.c | 2 -- 2 files changed, 10 insertions(+), 6 deletions(-)
hw/xen_backend.c +10 -4
@@ -67,9 +67,17 @@ char *xenstore_read_str(const char *base, const char *node) {char abspath[XEN_BUFSIZE ];unsigned int len; +char *str, *ret =NULL ;snprintf (abspath,sizeof (abspath),"%s/%s" , base, node); -return xs_read (xenstore,0 , abspath, &len); + str =xs_read (xenstore,0 , abspath, &len); +if (str !=NULL ) { +/* move to qemu-allocated memory to make sure +* callers can savely qemu_free() stuff. */ + ret =qemu_strdup (str); +free (str); + } +return ret; }int xenstore_write_int (const char *base,const char *node,int ival)
@@ -184,8 +192,6 @@ static struct XenDevice *xen_be_get_xendev(const char *type, int dom, int dev,/* init new xendev */ xendev =qemu_mallocz (ops->size); -if (!xendev) -return NULL ; xendev->type = type; xendev->dom = dom; xendev->dev = dev;
@@ -519,7 +525,7 @@ static int xenstore_scan(const char *type, int dom, struct XenDevOps *ops)continue ;xen_be_check_state (xendev); } -qemu_free (dev); +free (dev);return 0 ; }
hw/xenfb.c +0 -2
@@ -483,8 +483,6 @@ static int xenfb_map_fb(struct XenFB *xenfb) pgmfns =qemu_mallocz (sizeof (unsigned long ) * n_fbdirs); fbmfns =qemu_mallocz (sizeof (unsigned long ) * xenfb->fbpages); -if (!pgmfns || !fbmfns) - goto out;xenfb_copy_mfns (mode, n_fbdirs, pgmfns, pd); map = xc_map_foreign_pages(xen_xc, xenfb->c.xendev.dom,
Signature · 1 line
1.6.2.2
PATCH 5/7 merge review: logging fixups.
In reply to Gerd HoffmannUse new logging API.
Kill a few fprintf(stderr, "...") calls.
--- hw/xen_backend.c | 42 +++++++++++++++++++++++++++++------------- hw/xen_console.c | 6 ------ hw/xenfb.c | 15 +++++++-------- 3 files changed, 36 insertions(+), 27 deletions(-)
hw/xen_backend.c +29 -13
@@ -209,7 +209,7 @@ static struct XenDevice *xen_be_get_xendev(const char *type, int dom, int dev, xendev->evtchndev =xc_evtchn_open ();if (xendev->evtchndev <0 ) { -fprintf (stderr,"can't open evtchn device\n" ); +xen_be_printf (NULL ,0 ,"can't open evtchn device\n" );qemu_free (xendev);return NULL ; }
@@ -218,7 +218,7 @@ static struct XenDevice *xen_be_get_xendev(const char *type, int dom, int dev,if (ops->flags &DEVOPS_FLAG_NEED_GNTDEV ) { xendev->gnttabdev =xc_gnttab_open ();if (xendev->gnttabdev <0 ) { -fprintf (stderr,"can't open gnttab device\n" ); +xen_be_printf (NULL ,0 ,"can't open gnttab device\n" );xc_evtchn_close (xendev->evtchndev);qemu_free (xendev);return NULL ;
@@ -511,7 +511,7 @@ static int xenstore_scan(const char *type, int dom, struct XenDevOps *ops)snprintf (path,sizeof (path),"%s/backend/%s/%d" , dom0, type, dom);free (dom0);if (!xs_watch (xenstore, path, token)) { -fprintf (stderr,"xen be: watching backend path (%s) failed\n" , path); +xen_be_printf (NULL ,0 ,"xen be: watching backend path (%s) failed\n" , path);return -1 ; }
@@ -620,7 +620,7 @@ int xen_be_init(void) { xenstore =xs_daemon_open ();if (!xenstore) { -fprintf (stderr,"can't connect to xenstored\n" ); +xen_be_printf (NULL ,0 ,"can't connect to xenstored\n" );return -1 ; }
@@ -629,7 +629,7 @@ int xen_be_init(void) xen_xc =xc_interface_open ();if (xen_xc ==-1 ) { -fprintf (stderr,"can't open xen interface\n" ); +xen_be_printf (NULL ,0 ,"can't open xen interface\n" ); goto err; }return 0 ;
@@ -680,19 +680,35 @@ int xen_be_send_notify(struct XenDevice *xendev)/* * msg_level: -* 0 == errors. -* 1 == informative debug messages. -* 2 == noisy debug messages. -* 3 == will flood your log. +* 0 == errors (stderr + logfile). +* 1 == informative debug messages (logfile only). +* 2 == noisy debug messages (logfile only). +* 3 == will flood your log (logfile only). */ void xen_be_printf (struct XenDevice *xendev,int msg_level,const char *fmt, ...) {va_list args; -if (msg_level > xendev->debug) -return ; -fprintf (stderr,"xen be: %s: " , xendev->name); +if (xendev) { +if (msg_level > xendev->debug) +return ; +qemu_log ("xen be: %s: " , xendev->name); +if (msg_level ==0 ) +fprintf (stderr,"xen be: %s: " , xendev->name); + }else { +if (msg_level > debug) +return ; +qemu_log ("xen be core: " ); +if (msg_level ==0 ) +fprintf (stderr,"xen be core: " ); + }va_start (args, fmt); -vfprintf (stderr, fmt, args); +qemu_log_vprintf (fmt, args);va_end (args); +if (msg_level ==0 ) { +va_start (args, fmt); +vfprintf (stderr, fmt, args); +va_end (args); + } +qemu_log_flush (); }
hw/xen_console.c +0 -6
@@ -38,8 +38,6 @@#include "qemu-char.h" #include "xen_backend.h" -#define dolog (val, fmt, ...) fprintf(stderr, fmt "\n", ## __VA_ARGS__) -struct buffer {uint8_t *data;size_t consumed;
@@ -75,10 +73,6 @@ static void buffer_append(struct XenConsole *con)if ((buffer->capacity - buffer->size) < size) { buffer->capacity += (size +1024 ); buffer->data =qemu_realloc (buffer->data, buffer->capacity); -if (buffer->data ==NULL ) { -dolog (LOG_ERR ,"Memory allocation failed" ); -exit (ENOMEM ); - } }while (cons != prod)
hw/xenfb.c +7 -8
@@ -813,15 +813,14 @@ static void xenfb_handle_events(struct XenFB *xenfb) w =MIN (event->update.width, xenfb->width - x); h =MIN (event->update.height, xenfb->height - y);if (w <0 || h <0 ) { -fprintf (stderr,"xen be: %s: bogus update ignored\n" , - xenfb->c.xendev.name); +xen_be_printf (&xenfb->c.xendev,1 ,"bogus update ignored\n" );break ; } -if (x != event->update.x || y != event->update.y - || w != event->update.width - || h != event->update.height) { -fprintf (stderr,"xen be: %s: bogus update clipped\n" , - xenfb->c.xendev.name); +if (x != event->update.x || + y != event->update.y || + w != event->update.width || + h != event->update.height) { +xen_be_printf (&xenfb->c.xendev,1 ,"bogus update clipped\n" ); }if (w == xenfb->width && h > xenfb->height /2 ) {/* scroll detector: updated more than 50% of the lines,
@@ -993,7 +992,7 @@ wait_more:if (!xfb || !xin) {if (i <256 ) goto wait_more; -fprintf (stderr,"%s: displaystate setup failed\n" , __FUNCTION__); +xen_be_printf (NULL ,1 ,"displaystate setup failed\n" );return ; }
Signature · 1 line
1.6.2.2
PATCH 6/7 xenfb: kill unused variables
In reply to Gerd Hoffmann--- hw/xenfb.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
hw/xenfb.c +0 -2
@@ -695,8 +695,6 @@ static void xenfb_update(void *opaque) {struct XenFB *xenfb = opaque;struct DisplayChangeListener *l; -int dw =ds_get_width (xenfb->c.ds); -int dh =ds_get_height (xenfb->c.ds);int i;if (xenfb->c.xendev.be_state != XenbusStateConnected)
Signature · 1 line
1.6.2.2
PATCH 7/7 xen_backend logging: add missing include
In reply to Gerd Hoffmann--- hw/xen_backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
hw/xen_backend.c +1 -0
@@ -38,6 +38,7 @@#include "hw.h" #include "qemu-char.h" +#include "qemu-log.h" #include "xen_backend.h" /* ------------------------------------------------------------- */
Signature · 1 line
1.6.2.2