From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8912CC3DA70 for ; Fri, 26 Jul 2024 13:05:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:In-Reply-To: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=B3g6QURrGZPYRxDC3Hx/i8519mXf108ro6Hrgt5KPqY=; b=sd2QZTRexQf5aEYSL3nHnxVmT+ 5Hr2zpprPqu/XurPbWIZX7yppb8uyoAvdG+Q2nMKKa7+7krxrfmf4hDLVcYhqH5d5EScnhCkVMjJ0 XmFmZqxx+nx7kAz02KExkgD+YxNPB/hmRycQmnMXgaSmFl1ShtsHgtmKd3mmWJQ+qw8xeAAt/4AeE WEm6sYNSB+YBIfa3Vp3oLTKXc4klqTbXWegY9r0jBZKV7cJyaufPRXM1KVpz4gtpQm/gR/2O79ys1 w72MiNheSEuF+1Oq0tqVjwc0la351usQKyJBOZHBjic75zpKbd9tVZ5PvgLGb9Rrq3dwN5PDCEUU+ vfpegG7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXKdI-00000003xMT-2JKd; Fri, 26 Jul 2024 13:05:16 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXKct-00000003xE1-0toa for linux-arm-kernel@lists.infradead.org; Fri, 26 Jul 2024 13:04:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721999089; 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: in-reply-to:in-reply-to:references:references; bh=B3g6QURrGZPYRxDC3Hx/i8519mXf108ro6Hrgt5KPqY=; b=RyaflvMlkp9q9U9vkTVYZHyYhNQ9E70HW9g3yCMmoNczBVFydqCP6jXiJ93/N5mLUT7pRu css/8kzPhXPywve/aXIwM8hjnloj7CeYNA5VgpX9A8Kx0aDF404B6ogOw1tPMH25xXFnZu ML/rrX7TJS+bLXiZXGUilAVYgSjkKAA= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-635-FmyMRYWEPhunNTvznif_vQ-1; Fri, 26 Jul 2024 09:04:48 -0400 X-MC-Unique: FmyMRYWEPhunNTvznif_vQ-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-3679ab94cdbso1162663f8f.3 for ; Fri, 26 Jul 2024 06:04:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721999087; x=1722603887; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=B3g6QURrGZPYRxDC3Hx/i8519mXf108ro6Hrgt5KPqY=; b=qejmsuTzlhP7G78qZA5kuaTb3lldJjMyowkpo0YBloIjyOX06cAeHIYSGalNtvYBLI XFZpx2pl2NE5g6moG/XhvDlM2Lzcr4u7W7D5gEQOLXAt73W7rwep/qEJdW7KYWRZWU+G KGCdCkLXEfQ7eiZCpkzUa3bL4gEv/2+XXmtDFYJj/mCW7ul4iQOXiVw19Z23fl9d9kiz heI6CHLCsxMfGYWuROE/6m3YqhRS7nzZ7skmMAgiOjSCIb2EqliU/XrJCgsfg3y+TtHa 8LP3HZs8ZApVd+M2j+vymcg5pJWLf0psvuONzDH/q9d9uvaCe0msPfjsMwnl0mPG1Hpu /6sQ== X-Forwarded-Encrypted: i=1; AJvYcCVGsc0LNBG4luF+D6W8xVfBWxqIkZxoiQEuDbxdf3jAvVDHryYoTjILv6RdCfjk4OzovB+C8FLhf2ta9LSgB+rNZbbTy9Yi4fIljurATcoASYjwJSM= X-Gm-Message-State: AOJu0YyTI80vNNKKQWgr0XObvZtkjsk7EmpYz8PV+NZjmQo9lDWcK1gp I9owtMe6VdBsq/SASa0i4vsdevzjs0xVWyzkA5m2g4w7o3YJwRM5hK4lrb4FVgi8X+QyiD/2sOq AvKE1J4MVIZcGi9ZNLTe2G7SSBQtANKuJe14U+o7PBEC1O3brK5rIWoz+nLUayBFpJ7rFDEJS X-Received: by 2002:adf:f40e:0:b0:368:4ed7:2acc with SMTP id ffacd0b85a97d-36b3638148cmr3751302f8f.5.1721999087367; Fri, 26 Jul 2024 06:04:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2baiiVUKUBh/QT4ya/E9LOG3bE0mPK5t7EPOeVJPpQaN0mCePZ4SEB2ju0LD0SShA7ME5CA== X-Received: by 2002:adf:f40e:0:b0:368:4ed7:2acc with SMTP id ffacd0b85a97d-36b3638148cmr3751249f8f.5.1721999086564; Fri, 26 Jul 2024 06:04:46 -0700 (PDT) Received: from redhat.com ([2a02:14f:1f7:28ce:f21a:7e1e:6a9:f708]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b36801828sm5090963f8f.65.2024.07.26.06.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jul 2024 06:04:46 -0700 (PDT) Date: Fri, 26 Jul 2024 09:04:38 -0400 From: "Michael S. Tsirkin" To: David Woodhouse Cc: Richard Cochran , Peter Hilber , linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, "Ridoux, Julien" , virtio-dev@lists.linux.dev, "Luu, Ryan" , "Chashper, David" , "Mohamed Abuelfotoh, Hazem" , "Christopher S . Hall" , Jason Wang , John Stultz , netdev@vger.kernel.org, Stephen Boyd , Thomas Gleixner , Xuan Zhuo , Marc Zyngier , Mark Rutland , Daniel Lezcano , Alessandro Zummo , Alexandre Belloni , qemu-devel , Simon Horman Subject: Re: [PATCH] ptp: Add vDSO-style vmclock support Message-ID: <20240726090326-mutt-send-email-mst@kernel.org> References: <20240725163843-mutt-send-email-mst@kernel.org> <20240725170328-mutt-send-email-mst@kernel.org> <20240725174327-mutt-send-email-mst@kernel.org> <9261e393083bcd151a017a5af3345a1364b3e0f3.camel@infradead.org> <20240726015613-mutt-send-email-mst@kernel.org> <2e427b102d8fd899a9a3db2ec17a628beb24bc01.camel@infradead.org> <20240726084836-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240726_060451_348883_8147A032 X-CRM114-Status: GOOD ( 26.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 26, 2024 at 02:00:25PM +0100, David Woodhouse wrote: > On Fri, 2024-07-26 at 08:52 -0400, Michael S. Tsirkin wrote: > > On Fri, Jul 26, 2024 at 09:35:51AM +0100, David Woodhouse wrote: > > > But for this use case, we only need a memory region that the hypervisor > > > can update. We don't need any of that complexity of gratuitously > > > interrupting all the vCPUs just to ensure that none of them can be > > > running userspace while one of them does an update for itself, > > > potentially translating from one ABI to another. The hypervisor can > > > just update the user-visible memory in place. > > > > Looks like then your userspace is hypervisor specific, and that's a > > problem because it's a one way street - there is no way for hypervisor > > to know what does userspace need, so no way for hypervisor to know which > > information to provide. No real way to fix bugs. > > It's not hypervisor specific, but you're right that as it stands there > is no negotiation of what userspace wants. So the hypervisor provides > what it feels it can provide without significant overhead (which may or > may not include the precise timekeeping, as discussed, but should > always include the disruption signal which is the most important > thing). > > The guest *does* know what the hypervisor provides. And when we get to > do this in virtio, we get all the goodness of negotiation as well. The > existence of the simple ACPI model doesn't hurt that at all. Maybe it doesn't, at that. E.g. virtio does a copy, acpi doesn't? I'll ponder compatibility over the weekend. -- MST