[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86: allow disabling the emulated VGA
commit 4d81504ff449010daf69d930ebcd2d23b19a1cda Author: Roger Pau Monné <roger.pau@xxxxxxxxxx> AuthorDate: Tue Nov 10 12:07:32 2015 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Tue Nov 10 12:07:32 2015 +0100 x86: allow disabling the emulated VGA Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/hvm/stdvga.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/xen/arch/x86/hvm/stdvga.c b/xen/arch/x86/hvm/stdvga.c index 86c94d2..bd23b52 100644 --- a/xen/arch/x86/hvm/stdvga.c +++ b/xen/arch/x86/hvm/stdvga.c @@ -578,6 +578,9 @@ void stdvga_init(struct domain *d) struct page_info *pg; unsigned int i; + if ( !has_vvga(d) ) + return; + memset(s, 0, sizeof(*s)); spin_lock_init(&s->lock); @@ -615,6 +618,9 @@ void stdvga_deinit(struct domain *d) struct hvm_hw_stdvga *s = &d->arch.hvm_domain.stdvga; int i; + if ( !has_vvga(d) ) + return; + for ( i = 0; i != ARRAY_SIZE(s->vram_page); i++ ) { if ( s->vram_page[i] == NULL ) -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |