From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCHv2] KVM: x86 emulator: fix xchg instruction emulation Date: Thu, 15 Jul 2010 23:05:00 -0300 Message-ID: <20100716020500.GD21287@amt.cnet> References: <4C3D47DD.4010108@cn.fujitsu.com> <20100714163752.GA1100@amt.cnet> <4C3E5BAE.1010306@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm@vger.kernel.org To: Wei Yongjun Return-path: Received: from mx1.redhat.com ([209.132.183.28]:19607 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935309Ab0GPCVg (ORCPT ); Thu, 15 Jul 2010 22:21:36 -0400 Content-Disposition: inline In-Reply-To: <4C3E5BAE.1010306@cn.fujitsu.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jul 15, 2010 at 08:51:58AM +0800, Wei Yongjun wrote: > If the destination is a memory operand and the memory cannot > map to a valid page, the xchg instruction emulation and locked > instruction will not work on io regions and stuck in endless > loop. We should emulate exchange as write to fix it. > > Signed-off-by: Wei Yongjun > Acked-by: Gleb Natapov Applied, thanks.