From: Paolo Bonzini Subject: Re: [PATCH v3 2/5] KVM: New data type and ioctl for ring-based dirty memory tracking Date: Fri, 3 Feb 2017 21:38:24 -0800 Message-ID: References: <201702031949.v13JnTnS032014@dev1.sn.stratus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit To: "Cao, Lei" , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , "kvm@vger.kernel.org" Return-path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:34066 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753540AbdBDFjX (ORCPT ); Sat, 4 Feb 2017 00:39:23 -0500 Received: by mail-pf0-f194.google.com with SMTP id y143so2939950pfb.1 for ; Fri, 03 Feb 2017 21:38:29 -0800 (PST) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 03/02/2017 12:02, Cao, Lei wrote: > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index a7066dc..2b385f2 100644 > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -45,6 +45,7 @@ > > #define KVM_PIO_PAGE_OFFSET 1 > #define KVM_COALESCED_MMIO_PAGE_OFFSET 2 > +#define KVM_DIRTY_LOG_PAGE_OFFSET 64 These three defines should be in the UAPI header, and the documentation should explain KVM_DIRTY_LOG_PAGE_OFFSET. Paolo > #define KVM_HALT_POLL_NS_DEFAULT 400000 >