[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: megasas: Usage of is_write in megasas_map_sgl()
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] Re: megasas: Usage of is_write in megasas_map_sgl() |
Date: |
Fri, 03 Dec 2010 11:25:03 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 |
Am 02.12.2010 23:24, schrieb Nicholas A. Bellinger:
> The usage of a inverted is_write with cpu_physical_memory_map() also
> seems to be the case in dma-helpers.c:dma_brdv_cb():
>
> mem = cpu_physical_memory_map(cur_addr, &cur_len, !dbs->is_write);
>
> After changing to an inverted is_write in megasas.v3/megasas-upstream-v1
> code, this still does *not* seem to make a difference wrt to the 64-bit
> Win7 case, and the same BSOD appears.. In any event, we should verify
> this with QEMU folks in terms of what the proper usage of is_write for
> cpu_physical_memory_map(). Gerd and Kevin comments here..?
I haven't looked at the SCSI code, but the dma-helpers.c one is easy to
explain: If you read from the disk, you write to memory.
Kevin