Re: [Qemu-devel] [PATCH 2/2] xen: add vkbd support for PV on HVM guests

2011-06-24 Thread Stefano Stabellini
On Fri, 24 Jun 2011, Peter Maydell wrote: > On 24 June 2011 15:54, wrote: > > > +    if (!in->c.ds) { > > +        char *vfb = xenstore_read_str(NULL, "device/vfb"); > > +        if (vfb == NULL) { > > +            /* there is no vfb, run vkbd on its own */ > > +            in->c.ds = get_displa

Re: [Qemu-devel] [PATCH 2/2] xen: add vkbd support for PV on HVM guests

2011-06-24 Thread Peter Maydell
On 24 June 2011 15:54, wrote: > +    if (!in->c.ds) { > +        char *vfb = xenstore_read_str(NULL, "device/vfb"); > +        if (vfb == NULL) { > +            /* there is no vfb, run vkbd on its own */ > +            in->c.ds = get_displaystate(); > +        } else { > +            free(vfb);

[Qemu-devel] [PATCH 2/2] xen: add vkbd support for PV on HVM guests

2011-06-24 Thread stefano.stabellini
From: Stefano Stabellini Register the vkbd backend even when running as device emulator for HVM guests: it is useful because it doesn't need a frequent timer like usb. Check whether the XenInput DisplayState has been set in the initialise state, rather than the input state. In case the DisplaySt