From: Olaf Hering <olaf@aepfle.de>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: Anthony Perard <anthony.perard@citrix.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <rth@twiddle.net>,
Eduardo Habkost <ehabkost@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
qemu-devel@nongnu.org, xen-devel@lists.xenproject.org
Subject: Re: [Qemu-devel] [PATCH v2 2/2] xen_platform: SUSE xenlinux unplug for emulated PCI
Date: Fri, 16 Sep 2016 09:38:23 +0200 [thread overview]
Message-ID: <20160916073823.GB28560@aepfle.de> (raw)
In-Reply-To: <alpine.DEB.2.10.1609141851040.26423@sstabellini-ThinkPad-X260>
[-- Attachment #1: Type: text/plain, Size: 995 bytes --]
On Wed, Sep 14, Stefano Stabellini wrote:
> The doc says:
>
> "If VMDP was configured to control just NIC devices it would write the
> value 0x1 to offset 0x8. If VMDP was configured to control just storage
> devices it would write the value 0x2 to offset 0x8."
>
> So 0x1 to 0x8 to unplug NICs, otherwise 0x2 to 0x8 to unplug storage.
> The switch above does the opposite. What am I missing? Am I misreading
> the document?
The doc is wrong, this is what qemu-trad does:
+ case 8:
+ if (val ==1 ) {
+ fprintf(logfile, "Disconnect IDE hard disk...\n");
+ ide_unplug_harddisks();
+ fprintf(logfile, "Done.\n");
+ } else if (val == 2) {
+ fprintf(logfile, "Disconnect netifs...\n");
+ pci_unplug_netifs();
+ fprintf(logfile, "Shutdown taps...\n");
+ net_tap_shutdown_all();
+ fprintf(logfile, "Done.\n");
+ }
+ break;
Olaf
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 163 bytes --]
next prev parent reply other threads:[~2016-09-16 7:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-02 9:43 [Qemu-devel] [PATCH v2 0/2] Xen HVM unplug changes Olaf Hering
2016-09-02 9:43 ` Olaf Hering
2016-09-02 9:43 ` [Qemu-devel] [PATCH v2 1/2] xen_platform: unplug also SCSI disks Olaf Hering
2016-09-15 1:50 ` Stefano Stabellini
2016-09-15 1:50 ` Stefano Stabellini
2016-09-16 7:34 ` Olaf Hering
2016-09-16 7:34 ` [Qemu-devel] " Olaf Hering
2016-09-02 9:43 ` Olaf Hering
2016-09-02 9:43 ` [Qemu-devel] [PATCH v2 2/2] xen_platform: SUSE xenlinux unplug for emulated PCI Olaf Hering
2016-09-02 9:43 ` Olaf Hering
2016-09-15 1:56 ` [Qemu-devel] " Stefano Stabellini
2016-09-15 1:56 ` Stefano Stabellini
2016-09-16 7:38 ` Olaf Hering [this message]
2016-09-16 7:38 ` Olaf Hering
2016-10-14 0:41 ` [Qemu-devel] " Stefano Stabellini
2016-10-20 15:54 ` Olaf Hering
2016-10-20 15:54 ` Olaf Hering
2016-10-14 0:41 ` Stefano Stabellini
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=20160916073823.GB28560@aepfle.de \
--to=olaf@aepfle.de \
--cc=anthony.perard@citrix.com \
--cc=ehabkost@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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.