From: Gerd Hoffmann <kraxel@redhat.com>
To: Hannes Reinecke <hare@suse.de>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] megasas: LSI MegaRAID SAS HBA emulation
Date: Tue, 17 Nov 2009 11:22:38 +0100 [thread overview]
Message-ID: <4B02796E.4020504@redhat.com> (raw)
In-Reply-To: <20091112114849.E783838DC3@ochil.suse.de>
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
On 11/12/09 12:48, Hannes Reinecke wrote:
>
> This patch adds an emulation for the LSI MegaRAID SAS HBA.
> It is build on top of kraxel's scsi.v7 tree.
>
> This is just a rough implementation, many of the more
> advanced topics (like Windows booting :-) are missing.
>
> Signed-off-by: Hannes Reinecke<hare@suse.de>
Added, will be in scsi.v8. Needs a patch after rebasing due to pci
changes (attached fyi).
cheers,
Gerd
[-- Attachment #2: 0001-megasas-adapt-to-pci-changes.patch --]
[-- Type: text/plain, Size: 2297 bytes --]
>From ae3c2b55f84f9b12551369b21fd7b89d84ddfff6 Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <kraxel@redhat.com>
Date: Mon, 16 Nov 2009 23:12:53 +0100
Subject: [PATCH] megasas: adapt to pci changes.
---
hw/megasas.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/hw/megasas.c b/hw/megasas.c
index 723c586..3d15cc6 100644
--- a/hw/megasas.c
+++ b/hw/megasas.c
@@ -1034,7 +1034,7 @@ static void megasas_soft_reset(MPTState *s)
}
static void megasas_mmio_mapfunc(PCIDevice *pci_dev, int region_num,
- uint32_t addr, uint32_t size, int type)
+ pcibus_t addr, pcibus_t size, int type)
{
MPTState *s = DO_UPCAST(MPTState, dev, pci_dev);
@@ -1043,7 +1043,7 @@ static void megasas_mmio_mapfunc(PCIDevice *pci_dev, int region_num,
}
static void megasas_io_mapfunc(PCIDevice *pci_dev, int region_num,
- uint32_t addr, uint32_t size, int type)
+ pcibus_t addr, pcibus_t size, int type)
{
MPTState *s = DO_UPCAST(MPTState, dev, pci_dev);
@@ -1058,7 +1058,7 @@ static void megasas_io_mapfunc(PCIDevice *pci_dev, int region_num,
}
static void megasas_queue_mapfunc(PCIDevice *pci_dev, int region_num,
- uint32_t addr, uint32_t size, int type)
+ pcibus_t addr, pcibus_t size, int type)
{
MPTState *s = DO_UPCAST(MPTState, dev, pci_dev);
@@ -1140,11 +1140,11 @@ static int megasas_scsi_init(PCIDevice *dev)
s->queue_addr = cpu_register_io_memory(megasas_queue_readfn,
megasas_queue_writefn, s);
pci_register_bar((struct PCIDevice *)s, 0, 0x40000,
- PCI_ADDRESS_SPACE_MEM, megasas_mmio_mapfunc);
+ PCI_BASE_ADDRESS_SPACE_MEMORY, megasas_mmio_mapfunc);
pci_register_bar((struct PCIDevice *)s, 2, 256,
- PCI_ADDRESS_SPACE_IO, megasas_io_mapfunc);
+ PCI_BASE_ADDRESS_SPACE_IO, megasas_io_mapfunc);
pci_register_bar((struct PCIDevice *)s, 3, 0x40000,
- PCI_ADDRESS_SPACE_MEM, megasas_queue_mapfunc);
+ PCI_BASE_ADDRESS_SPACE_MEMORY, megasas_queue_mapfunc);
s->fw_sge = MEGASAS_MAX_SGE;
s->fw_cmds = MEGASAS_MAX_FRAMES;
s->fw_luns = (MEGASAS_MAX_LUNS > MAX_SCSI_DEVS) ?
--
1.6.2.5
next prev parent reply other threads:[~2009-11-17 10:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 11:48 [Qemu-devel] [PATCH] megasas: LSI MegaRAID SAS HBA emulation Hannes Reinecke
2009-11-17 10:22 ` Gerd Hoffmann [this message]
2009-11-17 10:51 ` [Qemu-devel] " Hannes Reinecke
2009-11-17 16:39 ` Gerd Hoffmann
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=4B02796E.4020504@redhat.com \
--to=kraxel@redhat.com \
--cc=hare@suse.de \
--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.