[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] frame buffer shared by domains on arch arm linux



On Wed, 21 Jan 2015, Mao Mingy wrote:
> I am trying to run the PVHVM guest on omap5 (arm arch) so that I can get the
> frame buffer shared by Domains. my setup are:
> 1. run xen4.5 after the u-boot.
> 2. start the dom0 (on linux kernel 3.12) on xen.

3.12 is pretty old now


> 3. run the qemu (from xen 4.5) and HVM backend on xen.

Is this the QEMU binary that gets compiled as part of the Xen 4.5 build
and started automatically by xl if you configure the VM with a
framebuffer?


> 4. run the guest domain as "Machine: Dummy Virtual Machine, model: XENVM-4.5"
> 5. try to build a frame buffer on guest domain by
>     CONFIG_XEN_FBDEV_FRONTEND = y
>     CONFIG_FB_VIRTUAL=y
> 
> after change to domain checking in the first list of xenfb_init(...) in
> xen-fbfront.c from
>     if (!xen_pv_domain()) --->    if (!xen_domain())
> the /dev/fb0 is built up on guest domain. However, writing to this fb has no
> response from screen.
> 
> Why xenfb_init limited to PV domain only?

No it is not. In fact if you use a more recent Linux kernel, you won't
need to make any modifications and it should work out of the box.


> Is the PVHVM mode supported by xen4.5 and linux3.12?

We don't call "PVHVM" guests on ARM: on ARM we only have one type of
guest. From the Linux kernel perspective, they are HVM domains.


> Looks at the xen.h at the linux kernel source:
> enum xen_domain_type {
>     XEN_NATIVE,        /* running on bare hardware    */
>     XEN_PV_DOMAIN,        /* running in a PV domain      */
>     XEN_HVM_DOMAIN,        /* running in a Xen hvm domain */
> };
> seems PVHVM is not there yet?

In this context PVHVM would just be XEN_PV_DOMAIN.


> Kindly enlighten me what could be the solution to get the frame buffer shared
> by Domains?

It should work out of the box with the latest Linux kernel and Xen 4.5,
if you add

vfb=['vnc=1']

to the VM config file.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.