qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 5/5] megasas: LSI Megaraid SAS emulation
Date: Wed, 06 Jul 2011 10:39:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Mnenhy/0.8.3 Thunderbird/3.1.10

On 07/06/2011 08:20 AM, Hannes Reinecke wrote:

We cannot map control structures from guest memory and treating them
as valid request state later on.

Yes, I've been working on that one already.
What I'll be doing is to read in the sge count during 'map_sgl' and
store this value internally (in ->iov_cnt). And during unmap I'll be
using this value instead of the frame-provided one.

That way we'll be checking the sge_count field only once when we slurp
in the entire frame.

Note the flags too. Perhaps it's easier to simply copy the entire frame header...

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]