From: "Andreas Färber" <afaerber@suse.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/2] qdev: add qbus_reset_all
Date: Fri, 11 Jan 2013 18:34:22 +0100 [thread overview]
Message-ID: <50F04D1E.7070500@suse.de> (raw)
In-Reply-To: <50EF09A4.4010608@suse.de>
Am 10.01.2013 19:34, schrieb Andreas Färber:
> Am 10.01.2013 15:49, schrieb Paolo Bonzini:
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> ---
>> hw/qdev-core.h | 12 ++++++++++++
>> hw/qdev.c | 7 ++++++-
>> 2 files changed, 18 insertions(+), 1 deletion(-)
>>
>> diff --git a/hw/qdev-core.h b/hw/qdev-core.h
>> index fdf14ec..853bd08 100644
>> --- a/hw/qdev-core.h
>> +++ b/hw/qdev-core.h
>> @@ -182,6 +182,18 @@ int qbus_walk_children(BusState *bus, qdev_walkerfn *devfn,
>> int qdev_walk_children(DeviceState *dev, qdev_walkerfn *devfn,
>> qbus_walkerfn *busfn, void *opaque);
>> void qdev_reset_all(DeviceState *dev);
>> +
>> +/**
>> + * @qbus_reset_all:
>
> Just " * qbus_reset_all:" please.
Patch was applied nontheless, please fix in a follow-up.
Andreas
>> + * @bus: Bus to be reset.
>> + *
>> + * Reset @bus and perform a bus-level ("hard") reset of all devices connected
>> + * to it, including recursive processing of all buses below @bus itself. A
>> + * hard reset means that qbus_reset_all will reset all state of the device.
>
> qbus_reset_all()?
>
>> + * For PCI devices, for example, this will include the base address registers
>
> #PCIDevice?
>
>> + * or configuration space.
>> + */
>> +void qbus_reset_all(BusState *bus);
>
> Otherwise looks trivial and okay.
>
> Andreas
>
>> void qbus_reset_all_fn(void *opaque);
>>
>> void qbus_free(BusState *bus);
[snip]
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2013-01-11 17:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-10 14:49 [Qemu-devel] [PATCH 0/2] virtio-scsi: abort in-flight I/O when the device is reset Paolo Bonzini
2013-01-10 14:49 ` [Qemu-devel] [PATCH 1/2] qdev: add qbus_reset_all Paolo Bonzini
2013-01-10 18:34 ` Andreas Färber
2013-01-11 17:34 ` Andreas Färber [this message]
2013-01-10 14:49 ` [Qemu-devel] [PATCH 2/2] virtio-scsi: abort in-flight I/O when the device is reset Paolo Bonzini
2013-01-10 15:14 ` [Qemu-devel] [PATCH 0/2] " Michael S. Tsirkin
2013-01-11 16:46 ` 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=50F04D1E.7070500@suse.de \
--to=afaerber@suse.de \
--cc=aliguori@us.ibm.com \
--cc=mst@redhat.com \
--cc=pbonzini@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 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.