From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbdHBIuS (ORCPT ); Wed, 2 Aug 2017 04:50:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47416 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752258AbdHBIuO (ORCPT ); Wed, 2 Aug 2017 04:50:14 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com F1A762F0129 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=pbonzini@redhat.com Subject: Re: [PATCH] kvm: x86: reduce rtc 0x70 access vm-exit time To: peng.hao2@zte.com.cn Cc: rkrcmar@redhat.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <201708021645519197745@zte.com.cn> From: Paolo Bonzini Message-ID: Date: Wed, 2 Aug 2017 10:50:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <201708021645519197745@zte.com.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 02 Aug 2017 08:50:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/08/2017 10:45, peng.hao2@zte.com.cn wrote: >>On 02/08/2017 17:24, Peng Hao wrote: > coalesced MMIO is async and io port should be sync . I don't need to > coalese io port access. Coalesced MMIO access is resolved on the next read from a coalesced MMIO address or the next write to a non-coalescecd MMIO address. So it would work perfectly for port 0x70. You would have to modify QEMU to split the RTC I/O ports into two MemoryRegions. Paolo