Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5923562ybl; Tue, 10 Dec 2019 13:50:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxLbkM2pe0vTEIIDZi+p6SvZTbks9c+qp/wMyriUseHTZgpln16cVhx7u50a0q6DP6F827x X-Received: by 2002:a9d:12ea:: with SMTP id g97mr14193099otg.105.1576014634310; Tue, 10 Dec 2019 13:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576014634; cv=none; d=google.com; s=arc-20160816; b=K6ITnx/HzQ2cEYhY6YMqe3J5g67wYN/ShPiZd1+u1t3/dA4Hv9UQycEcRsf/g6W4Zh qMQR5YNzeCxaX6wrjehpbq+/XloTm7uy3GB3ddHiljAE1HAjIG0ZZxLMQXirxD11suzT z94D8jldJg7SkCcRh3+B0aSM3XQ520Wi8pO69A9Qj9NxufBG6gBDrLmIJOJ1jk61bNzZ q7ZgAGT1LWupsvIlocp0i9y/+BU6ieXe1ms691GM8rEymCBs+GnuYtiu6FKt4UCUcoLw 78BRolanL1U0azXh/R3Qe24PiWZkXA0AFo2GxDAfTwF7EKNXGAaMLG7iB7Ltp/77F2zm 1uwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:in-reply-to:mime-version:references :message-id:subject:cc:to:from:date:dkim-signature; bh=kRHP/YZ/v5tZHq+EqyHv9Q8ygSXDpE+zmhmcnk0K+/0=; b=s9hqMasb6v3oDbvh8WTknWY5Qu7PqHfCjbw8qwtKyOeZyu1cxpoUvAglKYggaGJF7D SufFJMKvh/tvM4aqfwniZtAqGCtK1CRLRx4lwu7DbtjKC7LLwi4riLv8SW7nqTPSTfaE neItGX3FBrlVO0R9UwjzEX1z7guPh0TGysX1y9V92ZmW//t2TjaP2CUDvrnglgmCx/gy oGIt8w4fIQtCRyTOUJPgrr3iFAPyRhCnkWfxqbyUuICh9EbvI4DNRteu2Lqu4QzgpGeP 6uPlyrZ6mM67mUavU1GBHGi+T8raGnqIAuvy70CyqE7Zn57pWx4zu6OzSaTDBkzUZVca tXzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JNOxeqlH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i185si2627015oia.187.2019.12.10.13.50.22; Tue, 10 Dec 2019 13:50:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JNOxeqlH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728520AbfLJVtO (ORCPT + 99 others); Tue, 10 Dec 2019 16:49:14 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:44983 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729603AbfLJVtI (ORCPT ); Tue, 10 Dec 2019 16:49:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576014547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kRHP/YZ/v5tZHq+EqyHv9Q8ygSXDpE+zmhmcnk0K+/0=; b=JNOxeqlHEC08WO5wGiSoU9DljQe27/LzVkjKMFzIj/BHDY1pv/QTjHqQQKuAFrlHCV/98G CbQqkqxfWsb7SZzwwJUAvj7go01nO321gZxgnEqHVu8JC+bOUgCT0F4rNVTHX26MwnkAv9 GcPhEZ2wMuOZQuOUZZIHT4zGI+w1fic= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-19-Rbcpxl4wOzGYCgd-CnalEg-1; Tue, 10 Dec 2019 16:49:06 -0500 Received: by mail-qv1-f71.google.com with SMTP id r8so7804979qvp.3 for ; Tue, 10 Dec 2019 13:49:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4Fvh9KfncyRLodCGVx6CNMB0xHcL2ji/SSHmtcQvIBc=; b=Ul0lXjvLlLVZQBYZHSEQZySC1N8N0n5KaAafrxz1uGaV8ITsgaFV0PCZCXTI02bapu nvGU04+fUpgGszxHkPXRPx0eog0D+NBXypeyw5erigKSLZKZwEMQt+o6fJyhs2haxKdU hPW6Qzj4dTssedzr9GYxTQrR/g0dJz/Xga/ieXLnUZf+V0SHMWP5o0IOT6FbnijyqoYC rd1ZlylSYB8mHZs/kXicNnq7R0uiVOkiJFNsCqzma9oiOwqXUxWvxdnCzJpo1iCdO3PU c7juWqwF7GDJQlKdVCX+1JOVqiRdjptXEoXh8UjG98n/EzbPrppuUecA8/moz3ZUXgWi s/mA== X-Gm-Message-State: APjAAAX6oTIKYmw+dr1tM8LKgTVu+z79N6OAkEeAaze2dPRo5d5Yoxas BYeV/kBC4ISN28hTUHcXnnICgeuUN+WBC2wpISELYyalV3aCf/UPAOvfsSPqOq1H1L7UHxom8RG 77+NPZDae4BHyszcdf84bAJGa X-Received: by 2002:aed:2270:: with SMTP id o45mr32168456qtc.217.1576014546120; Tue, 10 Dec 2019 13:49:06 -0800 (PST) X-Received: by 2002:aed:2270:: with SMTP id o45mr32168443qtc.217.1576014545942; Tue, 10 Dec 2019 13:49:05 -0800 (PST) Received: from redhat.com (bzq-79-181-48-215.red.bezeqint.net. [79.181.48.215]) by smtp.gmail.com with ESMTPSA id 68sm1373605qkj.102.2019.12.10.13.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 13:49:04 -0800 (PST) Date: Tue, 10 Dec 2019 16:48:59 -0500 From: "Michael S. Tsirkin" To: Paolo Bonzini Cc: Jason Wang , Peter Xu , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Sean Christopherson , "Dr . David Alan Gilbert" , Vitaly Kuznetsov Subject: Re: [PATCH RFC 04/15] KVM: Implement ring-based dirty memory tracking Message-ID: <20191210164749-mutt-send-email-mst@kernel.org> References: <20191129213505.18472-1-peterx@redhat.com> <20191129213505.18472-5-peterx@redhat.com> <1355422f-ab62-9dc3-2b48-71a6e221786b@redhat.com> <20191210081958-mutt-send-email-mst@kernel.org> <8843d1c8-1c87-e789-9930-77e052bf72f9@redhat.com> MIME-Version: 1.0 In-Reply-To: <8843d1c8-1c87-e789-9930-77e052bf72f9@redhat.com> X-MC-Unique: Rbcpxl4wOzGYCgd-CnalEg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 02:31:54PM +0100, Paolo Bonzini wrote: > On 10/12/19 14:25, Michael S. Tsirkin wrote: > >> There is no new infrastructure to track the dirty pages---it's just a > >> different way to pass them to userspace. > > Did you guys consider using one of the virtio ring formats? > > Maybe reusing vhost code? >=20 > There are no used/available entries here, it's unidirectional > (kernel->user). Didn't look at the design yet, but flow control (to prevent overflow) goes the other way, doesn't it? That's what used is, essentially. > > If you did and it's not a good fit, this is something good to mention > > in the commit log. > >=20 > > I also wonder about performance numbers - any data here? >=20 > Yes some numbers would be useful. Note however that the improvement is > asymptotical, O(#dirtied pages) vs O(#total pages) so it may differ > depending on the workload. >=20 > Paolo