[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Pass-through a graphic card
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |