WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Pass-through a graphic card

To: Jean Guyader <jean.guyader@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Pass-through a graphic card
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Thu, 15 May 2008 13:13:23 +0200
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Kamala Narasimhan <Kamala.Narasimhan@xxxxxxxxxx>
Delivery-date: Thu, 15 May 2008 04:13:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <482C0C3E.6050602@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, Jean Guyader <jean.guyader@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Kamala Narasimhan <Kamala.Narasimhan@xxxxxxxxxx>
References: <48243170.7050706@xxxxxxxxxxxxx> <482C0C3E.6050602@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
Jean Guyader, le Thu 15 May 2008 11:11:10 +0100, a écrit :
>  
> +int get_vga_pt_enabled(void)
> +{
> +    struct hvm_info_table *t = get_hvm_info_table();
> +    return (t && t->vga_bios_paddr > 0);
> +}
> +
> +int get_vga_pt_bios_paddr(void)
> +{
> +    struct hvm_info_table *t = get_hvm_info_table();
> +    return (t ? t->vga_bios_paddr : 0);
> +}
> +
> +int get_vga_pt_bios_size(void)
> +{
> +    struct hvm_info_table *t = get_hvm_info_table();
> +    return (t ? t->vga_bios_size : -1);
> +}
> +

Mmm, maybe enabled and bios_size are redundant, since bios_size > 0
implies enabled?

Samuel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel