From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB22C13DDBD for ; Thu, 25 Jul 2024 05:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721886867; cv=none; b=cgvh1QafoX57r4JKbD6+zyLJnQ/mTT2Iy/sxkRDskwiRfOx+9ifmLhlU/rYT7SY8mG6Jfhh4s3s+yzes86EqYer+yG5fwvv1NOXiFNmw38ofMy/+UJsPzjzZS+t3llFNm0JKidijYwN7MfYU4AFoeQ4OD96afZ3Dl+2heBnzpUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721886867; c=relaxed/simple; bh=gAZvwL67v0vt6xsxrH6XS/itsYUgy+inKlxURoSIcdU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UyCE9/p9BH3AbfiOEPSyAd0DZgD4HovvaHndPPiz+hYS4fSoiGjV87BJQC5u7CO58Ud/w1Fx7Zn632xYlSCyjLYnMIfj3/Q+U83LE8Mj8Ofkylk6y/XHLg59O2VD2VgBusUW6qbv8SSpkuL3WpWe4Lu3+D7bH0aH8DRQKtQGTsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Sg/oqDl3; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Sg/oqDl3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721886864; 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=Dh3yyuBj9HXf2A5cEfYqf0NaFgetwfgWSnefr6wKli8=; b=Sg/oqDl3/zMVoIHGHP/9dA9o42bLVI+uErD2W0FnHd5ht+/ozbOH1kk/KqA3weiw0r/QCZ Od2bx09pFEGgeEtbU1d6dIsOCp+DW3DmB8qZ9O18JPcbJ8TGLi565oG7HHWD3VbiL3bKv8 IwAsX6opCb1rXSkEfI1XuzfQyxyk9kE= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-453-W1rqLgZNNKiuBM1B1NHVFw-1; Thu, 25 Jul 2024 01:54:21 -0400 X-MC-Unique: W1rqLgZNNKiuBM1B1NHVFw-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-36835f6ebdcso420286f8f.1 for ; Wed, 24 Jul 2024 22:54:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721886860; x=1722491660; 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=Dh3yyuBj9HXf2A5cEfYqf0NaFgetwfgWSnefr6wKli8=; b=W/6GW5xfM/N2Xx0eA+n1mHBppNL/ass25Obz6GhuyoRFiKSSHUiq7SgK46k5BlMOBa HY8kGWH5gN/V0/Hs0G2JMqLRNKezjYBQefzbrVjKn+RUyeIwz3/tFkAmIVoTSgt+7gUL 7CxgxQ4YT+NPFvO7JMzcP7RA6y06ow7c0iz5FgB7dM8dvQxBhygOTvyRULAoodjM76lx fhrZ7QxO6g+yEqPPARSCXGeELyN4Mlqv1elQ0hUaOJrJrYq4NCiw4RflVXJzqByw6kLB OnX7N+/D1eEryYuy5OzJ0vNufz2DqqX4zYo7Sct6pYjV9OQGZHdzYi6ZatgQmIaiAGs3 RdUQ== X-Forwarded-Encrypted: i=1; AJvYcCV+LhWv6gKN4E/XYsOmAJtVsLPDogYl9OqEh4q+PPlgOUUKKpP+h5dYIKdP/6KSp3H7nwpwTVKUmdkVNEBrwK6LLhhd4VIX0a29acn9 X-Gm-Message-State: AOJu0YysCf8M99zXmc8oN1QgZf1s+Ehj5uVF2I2cCFPUzM2UwwKtTv6T vp5UxLkfgTDCg/yJfwO973ZMlQuOXa6jf0cfyzn3A7jZJS4PgmDk+fNYcfM0ptFEXN0XeY5veVw JbgUKXteZ8Mbq/0zCCiGgy7mpoVQJ9PtaBWxRXDYrMOJAIhCGxgbyTVhE04Hd7g== X-Received: by 2002:a05:6000:1942:b0:368:3038:8290 with SMTP id ffacd0b85a97d-36b36421ac8mr707583f8f.39.1721886860524; Wed, 24 Jul 2024 22:54:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHI3Abal444WmsilGMojUOB9llheQDVQUaMgG30HCOZkmwXntXo9Fy/JkeXGpR8m6xgr9AF9A== X-Received: by 2002:a05:6000:1942:b0:368:3038:8290 with SMTP id ffacd0b85a97d-36b36421ac8mr707561f8f.39.1721886859582; Wed, 24 Jul 2024 22:54:19 -0700 (PDT) Received: from redhat.com ([2a02:14f:1ed:8427:35e3:731c:3106:ee46]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b36857dcesm900105f8f.85.2024.07.24.22.54.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jul 2024 22:54:18 -0700 (PDT) Date: Thu, 25 Jul 2024 01:54:10 -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: <20240725015120-mutt-send-email-mst@kernel.org> References: <14d1626bc9ddae9d8ad19d3c508538d10f5a8e44.camel@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14d1626bc9ddae9d8ad19d3c508538d10f5a8e44.camel@infradead.org> On Wed, Jul 24, 2024 at 06:16:37PM +0100, David Woodhouse wrote: > From: David Woodhouse > > The vmclock "device" provides a shared memory region with precision clock > information. By using shared memory, it is safe across Live Migration. > > Like the KVM PTP clock, this can convert TSC-based cross timestamps into > KVM clock values. Unlike the KVM PTP clock, it does so only when such is > actually helpful. > > The memory region of the device is also exposed to userspace so it can be > read or memory mapped by application which need reliable notification of > clock disruptions. > > Signed-off-by: David Woodhouse one other thing worth mentioning is that this design can't work with confidential computing setups. By comparison, mapping e.g. a range in a PCI BAR would work for these setups. Is there a reason this functionality is not interesting for confidential VMs? -- MST