From: Paolo Bonzini <pbonzini@redhat.com>
To: Julio Montes <julio.montes@intel.com>, qemu-devel@nongnu.org
Cc: philmd@redhat.com
Subject: Re: [Qemu-devel] [PATCH] hw/i386: turn off vmport if CONFIG_VMPORT is disabled
Date: Fri, 12 Jul 2019 16:54:50 +0200 [thread overview]
Message-ID: <ca254017-cf99-d3ef-65a0-b3f109f9ff0c@redhat.com> (raw)
In-Reply-To: <20190712145017.17879-1-julio.montes@intel.com>
On 12/07/19 16:50, Julio Montes wrote:
> vmport device is not included when CONFIG_VMPORT is disabled, hence
> QEMU fails with the following error:
>
> `Unknown device 'vmport' for bus 'ISA': unknown.`
>
> Signed-off-by: Julio Montes <julio.montes@intel.com>
> ---
> hw/i386/pc.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/hw/i386/pc.c b/hw/i386/pc.c
> index c33ce47578..549c437050 100644
> --- a/hw/i386/pc.c
> +++ b/hw/i386/pc.c
> @@ -83,6 +83,7 @@
> #include "hw/mem/memory-device.h"
> #include "sysemu/replay.h"
> #include "qapi/qmp/qerror.h"
> +#include "config-devices.h"
>
> /* debug PC/ISA interrupts */
> //#define DEBUG_IRQ
> @@ -2793,7 +2794,11 @@ static void pc_machine_initfn(Object *obj)
>
> pcms->max_ram_below_4g = 0; /* use default */
> pcms->smm = ON_OFF_AUTO_AUTO;
> +#ifdef CONFIG_VMPORT
> pcms->vmport = ON_OFF_AUTO_AUTO;
> +#else
> + pcms->vmport = ON_OFF_AUTO_OFF;
> +#endif /* CONFIG_VMPORT */
> /* acpi build is enabled by default if machine supports it */
> pcms->acpi_build_enabled = PC_MACHINE_GET_CLASS(pcms)->has_acpi_build;
> pcms->smbus_enabled = true;
>
Do we also want to make it "imply VMPORT" instead of "select"?
Paolo
next prev parent reply other threads:[~2019-07-12 14:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-12 14:50 [Qemu-devel] [PATCH] hw/i386: turn off vmport if CONFIG_VMPORT is disabled Julio Montes
2019-07-12 14:54 ` Paolo Bonzini [this message]
2019-07-12 16:02 ` [Qemu-devel] [PATCH v2] " Julio Montes
2019-07-12 17:45 ` Paolo Bonzini
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=ca254017-cf99-d3ef-65a0-b3f109f9ff0c@redhat.com \
--to=pbonzini@redhat.com \
--cc=julio.montes@intel.com \
--cc=philmd@redhat.com \
--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 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).