RE: [PATCH] qemu-kvm: Flush icache after dma operations for ia64

"Zhang, Xiantao" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <706158FABBBA044BAD4FE898A02E4BC201BD66196B@pdsmsx503.ccr.corp.intel.com>
Avi Kivity wrote:
> Jes Sorensen wrote:
>> Ok,
>> 
>> Trying once more. After spending a couple of hours trying to follow
>> the QEMU dma codeflow, I have convinced myself Avi is right and those
>> two functions don't need to do the flushing as they all end up
>> calling dma_bdrv_cb() which calls dma_brdv_unmap(). I have added a
>> couple comments to the code, which will hopefully save the next
>> person the 'pleasure' of trying to figure out this too.
>> 
> 
> It looks right to me.  Xiantao?

Fine to me.  But seems the change in qemu_iovec_from_buffer is lost in this patch or that change is also not unnecessary ?

Xiantao


>>                  access_len -= l;
>> -            }
>> +	    }
>> +	    dma_flush_range((unsigned long)buffer,
>> +			    (unsigned long)buffer + flush_len);
>>          }
>> 
> 
> Detab your code, please.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.