Re: [Spice-devel] multi monitor setup ?

2013-09-14 Thread Alexandre DERUMIER
Hi, Thanks for the informations !
 


- Mail original - 

De: David Jaša dj...@redhat.com 
À: Alexandre DERUMIER aderum...@odiso.com 
Cc: spice-devel@lists.freedesktop.org 
Envoyé: Jeudi 12 Septembre 2013 14:42:57 
Objet: Re: [Spice-devel] multi monitor setup ? 

Hi Alexandre, 

Alexandre DERUMIER píše v Pá 30. 08. 2013 v 15:36 +0200: 
 Hi, 
 
 I'm looking for documentation about multi monitor setup, and I can't find it. 
 
 How do it work ? 

For Windows VMs, up to four qxl devices can be specified on the command 
line. Linux VMs will see 4 heads on the single qxl device. 

 
 Do we need special qemu command line options ? (I don't use libvirt) 

You need to specify multiple devices for Windows VMs. This is what 
libvirt gives me (via 'virsh domxml-to-native qemu argv DOMAIN_XML'): 
... -vga qxl -global qxl-vga.ram_size=67108864 -global 
qxl-vga.vram_size=33554432 -device 
qxl,id=video1,ram_size=67108864,vram_size=33554432 -device 
qxl,id=video2,ram_size=67108864,vram_size=33554432 -device 
qxl,id=video3,ram_size=67108864,vram_size=33554432 

For Linux VM, just one qxl device is OK but then it's advisable to 
increase the available RAM: 
... -vga qxl -global qxl-vga.ram_size=134217728 -global 
qxl-vga.vram_size=33554432 

If you don't turn off surfaces, then you should increase vram size to 
say 64 MB from current default of 32 MB. 

David 

 Or is it only a client side option ? 
 
 Regards, 
 
 Alexandre 
 ___ 
 Spice-devel mailing list 
 Spice-devel@lists.freedesktop.org 
 http://lists.freedesktop.org/mailman/listinfo/spice-devel 

-- 

David Jaša, RHCE 

SPICE QE based in Brno 
GPG Key: 22C33E24 
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24 
___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel


Re: [Spice-devel] [xf86-video-qxl] Provide compatibility for Xorg list code with Xorg 1.12, for RHEL 6 support (resend)

2013-09-14 Thread Dave Airlie
On Sat, Sep 14, 2013 at 5:40 AM, Jeremy White jwh...@codeweavers.com wrote:
 Signed-off-by: Jeremy White jwh...@codeweavers.com
 ---
  src/qxl.h |   12 +++-
  src/qxl_kms.c |2 +-
  src/qxl_mem.c |2 +-
  3 files changed, 13 insertions(+), 3 deletions(-)

Seems fine to me, ACK

Dave.

 diff --git a/src/qxl.h b/src/qxl.h
 index c026b63..a3bc7db 100644
 --- a/src/qxl.h
 +++ b/src/qxl.h
 @@ -56,6 +56,16 @@

  #include qxl_drmmode.h

 +#if (XORG_VERSION_CURRENT  XORG_VERSION_NUMERIC(1, 11, 99, 903, 0))
 +typedef struct list xorg_list_t;
 +#define xorg_list_init  list_init
 +#define xorg_list_add   list_add
 +#define xorg_list_del   list_del
 +#define xorg_list_for_each_entrylist_for_each_entry
 +#else
 +typedef struct xorg_list xorg_list_t;
 +#endif
 +
  #include compat-api.h
  #define hidden _X_HIDDEN

 @@ -332,7 +342,7 @@ struct _qxl_screen_t
  #endif /* XSPICE */

  uint32_t deferred_fps;
 -struct xorg_list ums_bos;
 +xorg_list_t ums_bos;
  struct qxl_bo_funcs *bo_funcs;

  Bool kms_enabled;
 diff --git a/src/qxl_kms.c b/src/qxl_kms.c
 index 32859cc..6c5b427 100644
 --- a/src/qxl_kms.c
 +++ b/src/qxl_kms.c
 @@ -338,7 +338,7 @@ struct qxl_kms_bo {
  const char *name;
  uint32_t size;
  int type;
 -struct xorg_list bos;
 +xorg_list_t bos;
  void *mapping;
  qxl_screen_t *qxl;
  int refcnt;
 diff --git a/src/qxl_mem.c b/src/qxl_mem.c
 index 44be8c4..fde0976 100644
 --- a/src/qxl_mem.c
 +++ b/src/qxl_mem.c
 @@ -448,7 +448,7 @@ struct qxl_ums_bo {
  void *internal_virt_addr;
  int refcnt;
  qxl_screen_t *qxl;
 -struct xorg_list bos;
 +xorg_list_t bos;
  };

  static struct qxl_bo *qxl_bo_alloc_internal(qxl_screen_t *qxl, int type, int 
 flags, unsigned long size, const char *name)
 --
 1.7.10.4


 ___
 Spice-devel mailing list
 Spice-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/spice-devel
___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel