From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Guyader Subject: Re: [PATCH] Pass-through a graphic card Date: Thu, 15 May 2008 12:17:50 +0100 Message-ID: <482C1BDE.9060107@eu.citrix.com> References: <48243170.7050706@eu.citrix.com> <482C0C3E.6050602@eu.citrix.com> <20080515111323.GE5689@implementation.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20080515111323.GE5689@implementation.bordeaux.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault , Jean Guyader , xen-devel@lists.xensource.com, Ian Pratt , Keir Fraser List-Id: xen-devel@lists.xenproject.org Samuel Thibault wrote: > Jean Guyader, le Thu 15 May 2008 11:11:10 +0100, a =E9crit : >> =20 >> +int get_vga_pt_enabled(void) >> +{ >> + struct hvm_info_table *t =3D get_hvm_info_table(); >> + return (t && t->vga_bios_paddr > 0); >> +} >> + >> +int get_vga_pt_bios_paddr(void) >> +{ >> + struct hvm_info_table *t =3D get_hvm_info_table(); >> + return (t ? t->vga_bios_paddr : 0); >> +} >> + >> +int get_vga_pt_bios_size(void) >> +{ >> + struct hvm_info_table *t =3D get_hvm_info_table(); >> + return (t ? t->vga_bios_size : -1); >> +} >> + >=20 > Mmm, maybe enabled and bios_size are redundant, since bios_size > 0 > implies enabled? >=20 Yes, but it doesn't really matter. I am rewriting the patch to not use=20 this thing any more. --=20 Jean Guyader