Revision 25a11813 hw/xen_console.c
b/hw/xen_console.c | ||
---|---|---|
196 | 196 |
} |
197 | 197 |
|
198 | 198 |
output = xenstore_read_str(con->console, "output"); |
199 |
/* output is a pty by default */ |
|
199 |
|
|
200 |
/* no Xen override, use qemu output device */ |
|
200 | 201 |
if (output == NULL) { |
201 |
output = "pty"; |
|
202 |
con->chr = serial_hds[con->xendev.dev]; |
|
203 |
} else { |
|
204 |
snprintf(label, sizeof(label), "xencons%d", con->xendev.dev); |
|
205 |
con->chr = qemu_chr_open(label, output, NULL); |
|
202 | 206 |
} |
203 |
snprintf(label, sizeof(label), "xencons%d", con->xendev.dev); |
|
204 |
con->chr = qemu_chr_open(label, output, NULL); |
|
207 |
|
|
205 | 208 |
xenstore_store_pv_console_info(con->xendev.dev, con->chr); |
206 | 209 |
|
207 | 210 |
out: |
Also available in: Unified diff