From: Don Slutz <dslutz@verizon.com>
To: Eduardo Habkost <ehabkost@redhat.com>, Don Slutz <dslutz@verizon.com>
Cc: Anthony Liguori <aliguori@amazon.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Michael Tokarev <mjt@tls.msk.ru>,
qemu-devel@nongnu.org,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [BUGFIX][PATCH for 2.2 v4 1/1] -machine vmport=auto: Fix handling of VMWare ioport emulation for xen
Date: Thu, 20 Nov 2014 14:09:56 -0500 [thread overview]
Message-ID: <546E3C84.7040505@terremark.com> (raw)
In-Reply-To: <20141120190554.GB3137@thinpad.lan.raisama.net>
On 11/20/14 14:05, Eduardo Habkost wrote:
> On Thu, Nov 20, 2014 at 01:21:18PM -0500, Don Slutz wrote:
> [...]
>> @@ -242,9 +243,16 @@ static void pc_q35_init(MachineState *machine)
>>
>> pc_register_ferr_irq(gsi[13]);
>>
>> + assert(pc_machine->vmport != ON_OFF_AUTO_MAX);
>> + if (pc_machine->vmport == ON_OFF_AUTO_AUTO) {
>> + no_vmport = xen_enabled();
>> + } else {
>> + no_vmport = (pc_machine->vmport != ON_OFF_AUTO_ON);
>> + }
>> +
>> /* init basic PC hardware */
>> pc_basic_device_init(isa_bus, gsi, &rtc_state, &floppy,
>> - !pc_machine->vmport, 0xff0104);
>> + no_vmport, 0xff0104);
>>
> Sorry for suggesting yet another change, but: what about changing
> pc_machine->vmport here instead of using a no_vmport variable, so the
> actual vmport configuration may be queried by anybody later using the
> QOM property? It would even make the code shorter.
>
> I mean:
>
> if (pc_machine->vmport == ON_OFF_AUTO_AUTO) {
> pc_machine->vmport = xen_enabled() ? ON_OFF_AUTO_OFF : ON_OFF_AUTO_ON);
> }
> pc_basic_device_init(isa_bus, gsi, &rtc_state, &floppy,
> (pc_machine->vmport != ON_OFF_AUTO_ON), 0xff0104);
>
>
Look better to me also. So will adjust the patch.
-Don Slutz
next prev parent reply other threads:[~2014-11-20 19:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 18:21 [Qemu-devel] [BUGFIX][PATCH for 2.2 v4 1/1] -machine vmport=auto: Fix handling of VMWare ioport emulation for xen Don Slutz
2014-11-20 19:05 ` Eduardo Habkost
2014-11-20 19:09 ` Don Slutz [this message]
2014-11-20 19:46 ` Eric Blake
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=546E3C84.7040505@terremark.com \
--to=dslutz@verizon.com \
--cc=aliguori@amazon.com \
--cc=dgilbert@redhat.com \
--cc=ehabkost@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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.