* [Qemu-devel] [PATCH] virtio-console: Automatically use virtio-serial-bus for the older -virtioconsole invocation
@ 2010-01-21 10:49 Amit Shah
2010-01-26 22:04 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Amit Shah @ 2010-01-21 10:49 UTC (permalink / raw)
To: qemu-devel; +Cc: Amit Shah
These hunks got dropped off mysteriously during the rebasing of my
virtio-serial series. Thanks go to Markus for noticing it.
Without these fixes, -virtioconsole doesn't actually have any effect.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reported-by: Markus Armbruster <armbru@redhat.com>
---
roms/seabios | 2 +-
vl.c | 15 +++++++++++++--
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/roms/seabios b/roms/seabios
index 5da6833..8362699 160000
--- a/roms/seabios
+++ b/roms/seabios
@@ -1 +1 @@
-Subproject commit 5da68339ecf44677b8f4f115cdf3cb1da46a9f6c
+Subproject commit 8362699269d7b3c816981be0e306d7531aa3ea1d
diff --git a/vl.c b/vl.c
index e070ec9..ae3ee0b 100644
--- a/vl.c
+++ b/vl.c
@@ -288,8 +288,9 @@ static struct {
{ .driver = "isa-parallel", .flag = &default_parallel },
{ .driver = "isa-fdc", .flag = &default_floppy },
{ .driver = "ide-drive", .flag = &default_cdrom },
- { .driver = "virtio-console-pci", .flag = &default_virtcon },
- { .driver = "virtio-console-s390", .flag = &default_virtcon },
+ { .driver = "virtio-serial-pci", .flag = &default_virtcon },
+ { .driver = "virtio-serial-s390", .flag = &default_virtcon },
+ { .driver = "virtio-serial", .flag = &default_virtcon },
{ .driver = "VGA", .flag = &default_vga },
{ .driver = "cirrus-vga", .flag = &default_vga },
{ .driver = "vmware-svga", .flag = &default_vga },
@@ -4623,6 +4624,7 @@ static int virtcon_parse(const char *devname)
{
static int index = 0;
char label[32];
+ QemuOpts *bus_opts, *dev_opts;
if (strcmp(devname, "none") == 0)
return 0;
@@ -4630,6 +4632,13 @@ static int virtcon_parse(const char *devname)
fprintf(stderr, "qemu: too many virtio consoles\n");
exit(1);
}
+
+ bus_opts = qemu_opts_create(&qemu_device_opts, NULL, 0);
+ qemu_opt_set(bus_opts, "driver", "virtio-serial");
+
+ dev_opts = qemu_opts_create(&qemu_device_opts, NULL, 0);
+ qemu_opt_set(dev_opts, "driver", "virtconsole");
+
snprintf(label, sizeof(label), "virtcon%d", index);
virtcon_hds[index] = qemu_chr_open(label, devname, NULL);
if (!virtcon_hds[index]) {
@@ -4637,6 +4646,8 @@ static int virtcon_parse(const char *devname)
devname, strerror(errno));
return -1;
}
+ qemu_opt_set(dev_opts, "chardev", label);
+
index++;
return 0;
}
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] virtio-console: Automatically use virtio-serial-bus for the older -virtioconsole invocation
2010-01-21 10:49 [Qemu-devel] [PATCH] virtio-console: Automatically use virtio-serial-bus for the older -virtioconsole invocation Amit Shah
@ 2010-01-26 22:04 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2010-01-26 22:04 UTC (permalink / raw)
To: Amit Shah; +Cc: qemu-devel
On 01/21/2010 04:49 AM, Amit Shah wrote:
> These hunks got dropped off mysteriously during the rebasing of my
> virtio-serial series. Thanks go to Markus for noticing it.
>
> Without these fixes, -virtioconsole doesn't actually have any effect.
>
> Signed-off-by: Amit Shah<amit.shah@redhat.com>
> Reported-by: Markus Armbruster<armbru@redhat.com>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> roms/seabios | 2 +-
> vl.c | 15 +++++++++++++--
> 2 files changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/roms/seabios b/roms/seabios
> index 5da6833..8362699 160000
> --- a/roms/seabios
> +++ b/roms/seabios
> @@ -1 +1 @@
> -Subproject commit 5da68339ecf44677b8f4f115cdf3cb1da46a9f6c
> +Subproject commit 8362699269d7b3c816981be0e306d7531aa3ea1d
> diff --git a/vl.c b/vl.c
> index e070ec9..ae3ee0b 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -288,8 +288,9 @@ static struct {
> { .driver = "isa-parallel", .flag =&default_parallel },
> { .driver = "isa-fdc", .flag =&default_floppy },
> { .driver = "ide-drive", .flag =&default_cdrom },
> - { .driver = "virtio-console-pci", .flag =&default_virtcon },
> - { .driver = "virtio-console-s390", .flag =&default_virtcon },
> + { .driver = "virtio-serial-pci", .flag =&default_virtcon },
> + { .driver = "virtio-serial-s390", .flag =&default_virtcon },
> + { .driver = "virtio-serial", .flag =&default_virtcon },
> { .driver = "VGA", .flag =&default_vga },
> { .driver = "cirrus-vga", .flag =&default_vga },
> { .driver = "vmware-svga", .flag =&default_vga },
> @@ -4623,6 +4624,7 @@ static int virtcon_parse(const char *devname)
> {
> static int index = 0;
> char label[32];
> + QemuOpts *bus_opts, *dev_opts;
>
> if (strcmp(devname, "none") == 0)
> return 0;
> @@ -4630,6 +4632,13 @@ static int virtcon_parse(const char *devname)
> fprintf(stderr, "qemu: too many virtio consoles\n");
> exit(1);
> }
> +
> + bus_opts = qemu_opts_create(&qemu_device_opts, NULL, 0);
> + qemu_opt_set(bus_opts, "driver", "virtio-serial");
> +
> + dev_opts = qemu_opts_create(&qemu_device_opts, NULL, 0);
> + qemu_opt_set(dev_opts, "driver", "virtconsole");
> +
> snprintf(label, sizeof(label), "virtcon%d", index);
> virtcon_hds[index] = qemu_chr_open(label, devname, NULL);
> if (!virtcon_hds[index]) {
> @@ -4637,6 +4646,8 @@ static int virtcon_parse(const char *devname)
> devname, strerror(errno));
> return -1;
> }
> + qemu_opt_set(dev_opts, "chardev", label);
> +
> index++;
> return 0;
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-26 22:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-21 10:49 [Qemu-devel] [PATCH] virtio-console: Automatically use virtio-serial-bus for the older -virtioconsole invocation Amit Shah
2010-01-26 22:04 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).