From: Gerd Hoffmann <kraxel@redhat.com>
To: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
Cc: jan.kiszka@siemens.com, qemu-devel@nongnu.org,
wlm.libvirt@googlemail.com
Subject: Re: [Qemu-devel] [PATCH 1/4] SCSI-hotdel: Add detach method to LSI SCSI driver
Date: Mon, 21 Sep 2009 09:46:30 +0200 [thread overview]
Message-ID: <4AB72F56.3060507@redhat.com> (raw)
In-Reply-To: <1253287594-12905-2-git-send-email-wolfgang.mauerer@siemens.com>
> diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
> index 62bdca8..7e975b4 100644
> --- a/hw/lsi53c895a.c
> +++ b/hw/lsi53c895a.c
> @@ -1959,6 +1959,22 @@ static void lsi_mmio_mapfunc(PCIDevice *pci_dev, int region_num,
> cpu_register_physical_memory(addr + 0, 0x400, s->mmio_io_addr);
> }
>
> +void lsi_scsi_detach(DeviceState *host, BlockDriverState *bd, int id)
> +{
> + LSIState *s = (LSIState *)host;
> +
> + if (id>= LSI_MAX_DEVS || id< 0) {
> + BADF("Bad Device ID %d\n", id);
> + return;
> + }
> +
> + if (s->bus->devs[id]) {
> + DPRINTF("Destroying device %d\n", id);
> + s->bus->devs[id]->info->destroy(s->bus->devs[id]);
> + }
> + s->bus->devs[id] = NULL;
> +}
> +
Wrong place. It should go to scsi-bus.c, it is the reverse of the
scsi_qdev_init function.
cheers,
Gerd
prev parent reply other threads:[~2009-09-21 7:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-18 15:26 [Qemu-devel] [PATCH 0/4] SCSI-hotdel: Implement removal of SCSI hard disks Wolfgang Mauerer
2009-09-18 15:26 ` [Qemu-devel] [PATCH 1/4] SCSI-hotdel: Add detach method to LSI SCSI driver Wolfgang Mauerer
2009-09-18 15:26 ` [Qemu-devel] [PATCH 2/4] SCSI-hotdel: Factor out IF argument parsing Wolfgang Mauerer
2009-09-18 15:26 ` [Qemu-devel] [PATCH 3/4] SCSI-Hotdel: Implement drive_hot_del Wolfgang Mauerer
2009-09-18 15:26 ` [Qemu-devel] [PATCH 4/4] Small cleanup for drive_hot_add Wolfgang Mauerer
2009-09-21 7:53 ` [Qemu-devel] [PATCH 3/4] SCSI-Hotdel: Implement drive_hot_del Gerd Hoffmann
2009-09-30 15:45 ` Wolfgang Mauerer
2009-09-30 19:04 ` Gerd Hoffmann
2009-10-01 7:54 ` Wolfgang Mauerer
2009-10-01 8:50 ` Gerd Hoffmann
2009-09-21 7:46 ` Gerd Hoffmann [this message]
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=4AB72F56.3060507@redhat.com \
--to=kraxel@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=qemu-devel@nongnu.org \
--cc=wlm.libvirt@googlemail.com \
--cc=wolfgang.mauerer@siemens.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.