From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Cc: Ian Kirk <blob@blob.co.uk>
Subject: Re: [Qemu-devel] [PATCH 1/1] Make vmport an optional feature at run time.
Date: Sun, 24 Aug 2008 14:38:45 -0500 [thread overview]
Message-ID: <48B1B8C5.4040902@codemonkey.ws> (raw)
In-Reply-To: <1219578445-25610-1-git-send-email-blob@blob.co.uk>
Ian Kirk wrote:
> Hi,
>
> This is my first time sending a patch, so apologies for any errors.
>
> Patch makes vmport optionally initiated.
>
Why should it be optional?
Regards,
Anthony Liguori
> ---
> hw/pc.c | 3 ++-
> hw/pc.h | 1 +
> vl.c | 7 +++++++
> 3 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/hw/pc.c b/hw/pc.c
> index 213ead8..56e1641 100644
> --- a/hw/pc.c
> +++ b/hw/pc.c
> @@ -774,7 +774,8 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size,
> }
> }
>
> - vmport_init();
> + if (!no_vmport)
> + vmport_init();
>
> /* allocate RAM */
> ram_addr = qemu_ram_alloc(ram_size);
> diff --git a/hw/pc.h b/hw/pc.h
> index 2862849..b19d626 100644
> --- a/hw/pc.h
> +++ b/hw/pc.h
> @@ -84,6 +84,7 @@ void rtc_set_date(RTCState *s, const struct tm *tm);
>
> /* pc.c */
> extern int fd_bootchk;
> +extern int no_vmport;
>
> void ioport_set_a20(int enable);
> int ioport_get_a20(void);
> diff --git a/vl.c b/vl.c
> index 7ca8420..21012bf 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -217,6 +217,7 @@ const char *vnc_display;
> #endif
> int acpi_enabled = 1;
> int fd_bootchk = 1;
> +int no_vmport = 0;
> int no_reboot = 0;
> int no_shutdown = 0;
> int cursor_hide = 1;
> @@ -7664,6 +7665,7 @@ static void help(int exitcode)
> "-pflash file use 'file' as a parallel flash image\n"
> "-boot [a|c|d|n] boot on floppy (a), hard disk (c), CD-ROM (d), or network (n)\n"
> "-snapshot write to temporary files instead of disk image files\n"
> + "-no-vmport disable vmport\n"
> #ifdef CONFIG_SDL
> "-no-frame open SDL window without a frame and window decorations\n"
> "-alt-grab use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)\n"
> @@ -7825,6 +7827,7 @@ enum {
> QEMU_OPTION_pflash,
> QEMU_OPTION_boot,
> QEMU_OPTION_snapshot,
> + QEMU_OPTION_no_vmport,
> #ifdef TARGET_I386
> QEMU_OPTION_no_fd_bootchk,
> #endif
> @@ -7918,6 +7921,7 @@ const QEMUOption qemu_options[] = {
> { "pflash", HAS_ARG, QEMU_OPTION_pflash },
> { "boot", HAS_ARG, QEMU_OPTION_boot },
> { "snapshot", 0, QEMU_OPTION_snapshot },
> + { "no-vmport", 0, QEMU_OPTION_no_vmport },
> #ifdef TARGET_I386
> { "no-fd-bootchk", 0, QEMU_OPTION_no_fd_bootchk },
> #endif
> @@ -8411,6 +8415,9 @@ int main(int argc, char **argv)
> case QEMU_OPTION_pflash:
> drive_add(optarg, PFLASH_ALIAS);
> break;
> + case QEMU_OPTION_no_vmport:
> + no_vmport = 1;
> + break;
> case QEMU_OPTION_snapshot:
> snapshot = 1;
> break;
>
next prev parent reply other threads:[~2008-08-24 19:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-24 11:47 [Qemu-devel] [PATCH 1/1] Make vmport an optional feature at run time Ian Kirk
2008-08-24 19:38 ` Anthony Liguori [this message]
2008-08-24 19:54 ` Ian Kirk
2008-08-25 0:23 ` Anthony Liguori
2008-08-25 6:19 ` [Qemu-devel] [PATCH] 1/1: vmport update Todd T. Fries
2008-09-07 2:24 ` [Qemu-devel] [PATCH 1/1] Make vmport an optional feature at run time Anthony Liguori
2008-09-07 3:48 ` qemu-devel
2008-08-25 8:34 ` Thiemo Seufer
2008-08-25 9:26 ` Ian Kirk
2008-09-07 2:27 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48B1B8C5.4040902@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=blob@blob.co.uk \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.