projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c603463
)
x86: allow disabling the emulated VGA
author
Roger Pau Monné
<roger.pau@citrix.com>
Tue, 10 Nov 2015 11:07:32 +0000
(12:07 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Tue, 10 Nov 2015 11:07:32 +0000
(12:07 +0100)
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/stdvga.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/stdvga.c
b/xen/arch/x86/hvm/stdvga.c
index 86c94d272a1076a555cfceb14b780cbd1cc96cbb..bd23b52888054dcf21a1bdfbf14c0f34ba7565cd 100644
(file)
--- 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 )