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

Re: [Xen-devel] [PATCH] xen: Disable RAM-to-RAM copy in hvmemul_rep_movs() when mem_access_emulate_enabled


  • To: Jan Beulich <JBeulich@xxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Tue, 05 May 2015 14:27:04 +0300
  • Cc: andrew.cooper3@xxxxxxxxxx, keir@xxxxxxx, xen-devel@xxxxxxxxxxxxx
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Tue, 05 May 2015 11:26:45 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=Car91y0maJQ9KUCD0lBwV/Uxl0Ps/o6PyATOj82KMO09bZIAoCpqWQWtD32ZgNtEu0ge7KPgDLNIkPgngTLYiDGJ5AtfPO6cuwuihCHBdkmMiUhMB+KFawpAWpjftUbEExr9GczZqWaalp8IokM0HZ6q1yFuHkkuBF+Fq8XRrjh9ST2Dh7OGBolUtuhlmwuIlyXVcN1kIzY2UTdaALECXZiZWCBlsDqSRyjiS1kuTVbrM3jz+Ng3Dc/KLeXxefeu2JogbeW5dzD41ZICucUI0ihg/ShIAXUmgInkA9Cx8xKS8ymSsA59FDbyG2mCjSM2rBjcFbkcRTZ0PE0v6SXgtA==; h=Received:Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 05/05/2015 01:23 PM, Jan Beulich wrote:
>>>> On 05.05.15 at 12:01, <rcojocaru@xxxxxxxxxxxxxxx> wrote:
>> The mem_access client might want to use hvm_emulate_one_no_write(),
>> in which case the RAM-to-RAM copy code in hvmemul_rep_movs() would
>> lead to an unwanted (and unexpected) write operation.
> 
> I don't follow: hvm_emulate_one_no_write() uses
> hvm_emulate_ops_no_write, which in turn uses
> hvmemul_rep_movs_discard(). What unwanted writes are you
> talking about? And if it was needed, why would
> hvmemul_rep_stos() not require a similar tweak?

You're right, my mistake. I'm testing a few patches meant for the a new
series, and one of them introduces a third kind of emulation, and the
problem is only there - the nowrite case is fine, as you rightly pointed
out. Sorry for the false alarm.

On the bright side, this just saved a bit of back-and-forth when the
series is submitted.


Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.