Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-04 Thread Hannes Reinecke
On 07/03/2011 04:36 PM, Paolo Bonzini wrote: On 07/02/2011 03:50 PM, Hannes Reinecke wrote: (And no, I will not getting into another dog-fight with Paul B. here. Virtio can do without bounce buffers. AHCI can. So I fail to see why SCSI has to rely on bounce buffers.) I agree, but I do see why

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-04 Thread Paolo Bonzini
On 07/04/2011 08:13 AM, Hannes Reinecke wrote: On 07/03/2011 04:36 PM, Paolo Bonzini wrote: On 07/02/2011 03:50 PM, Hannes Reinecke wrote: (And no, I will not getting into another dog-fight with Paul B. here. Virtio can do without bounce buffers. AHCI can. So I fail to see why SCSI has to rely

Re: [Qemu-devel] [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-04 Thread Hannes Reinecke
On 07/02/2011 06:14 PM, Stefan Hajnoczi wrote: On Fri, Jul 1, 2011 at 4:35 PM, Hannes Reineckeh...@suse.de wrote: +static void megasas_mmio_writel(void *opaque, target_phys_addr_t addr, +uint32_t val) +{ +MPTState *s = opaque; +target_phys_addr_t

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-04 Thread Paolo Bonzini
On 07/04/2011 09:26 AM, Hannes Reinecke wrote: Cool. Exactly what I need. FWIW, feel free to add my 'Acked-by' to it. Any chance of getting them included? I'm not very tied to pvscsi; I just needed an HBA that is not a joke by modern standards :) to play with the SCSI layer. There may be

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-04 Thread Hannes Reinecke
On 07/04/2011 12:29 PM, Paolo Bonzini wrote: On 07/04/2011 09:26 AM, Hannes Reinecke wrote: Cool. Exactly what I need. FWIW, feel free to add my 'Acked-by' to it. Any chance of getting them included? I'm not very tied to pvscsi; I just needed an HBA that is not a joke by modern standards

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-04 Thread Paolo Bonzini
On 07/04/2011 02:52 PM, Hannes Reinecke wrote: However, I probably will see to fixup the megasas emulation with the current infrastructure, get that in, and then move over to the iovec infrastructure. Makes sense also for ease of review. But if you promise to merge the iovec infrastructure

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-03 Thread Michael S. Tsirkin
On Fri, Jul 01, 2011 at 11:16:03AM +0200, Alexander Graf wrote: On 01.07.2011, at 09:42, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. Signed-off-by: Hannes Reinecke h...@suse.de --- Makefile.objs |1 +

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-03 Thread Paolo Bonzini
On 07/02/2011 03:50 PM, Hannes Reinecke wrote: (And no, I will not getting into another dog-fight with Paul B. here. Virtio can do without bounce buffers. AHCI can. So I fail to see why SCSI has to rely on bounce buffers.) I agree, but I do see why a SCSI device might prefer to rely on bounce

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-02 Thread Hannes Reinecke
On 07/01/2011 06:42 PM, Alexander Graf wrote: On 01.07.2011, at 17:35, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. Have you tried to execute the current version of megasas and actually do something with it? I just booted up openSUSE 11.4

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-02 Thread Alexander Graf
Am 02.07.2011 um 15:50 schrieb Hannes Reinecke h...@suse.de: On 07/01/2011 06:42 PM, Alexander Graf wrote: On 01.07.2011, at 17:35, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. Have you tried to execute the current version of megasas and

Re: [Qemu-devel] [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-02 Thread Stefan Hajnoczi
On Fri, Jul 1, 2011 at 4:35 PM, Hannes Reinecke h...@suse.de wrote: +static void megasas_mmio_writel(void *opaque, target_phys_addr_t addr, +                                uint32_t val) +{ +    MPTState *s = opaque; +    target_phys_addr_t frame_addr; +    uint32_t frame_count; +    int i;

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-01 Thread Alexander Graf
On 01.07.2011, at 09:42, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. Signed-off-by: Hannes Reinecke h...@suse.de --- Makefile.objs |1 + default-configs/pci.mak |1 + hw/megasas.c| 1923

Re: [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-01 Thread Alexander Graf
On 01.07.2011, at 17:35, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. Have you tried to execute the current version of megasas and actually do something with it? I just booted up openSUSE 11.4 rescue from DVD with a megasas adapter that contained