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 E06F717B503 for ; Fri, 26 Jul 2024 12:47:22 +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=1721998044; cv=none; b=qEu99rbdFN70erKIGG0d3VrSZojaRmicHFt5/oP62hQz+UabnlQPJ0jobvODL16C62CrpuHScmRK7unyTqCPvINJ1oqAxbC6//UhPG7+YZPpihFbVkgGY+e++7EpsBhN1T/g3PwTTMMjBOKEXX2hYpzAa3mDWilEojyssauidDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721998044; c=relaxed/simple; bh=RmGLUnoetEsANs8js7zdCDASNKY2oahCjcFGORl2aJU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jwyd7yK80etAo1/7/WkysiW7FwpQY6XSSOgO3jR2/tmwk3136l7tUJwHKE3ra+jX/I0RiGElA1NeJ8P5qCB/9f+7hjy87Xne999XiQ/NPX+5JZ8OZGU67BETNzGn6Ypjj9QTOB/KSmaeyXPUAP34CitL3yyxADf1syPzsMq5uQk= 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=YcxuFKZy; 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="YcxuFKZy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721998042; 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=+RI/VaWGAXgOj4f2LRD8sZvA9wQ8Bbq5V+URVVIVY/U=; b=YcxuFKZyieK7jEgsIoK+Aq6zTdtqxXZM7+ntgq18aMglHIViGfaNbRKwW/+kyqR7/QV2LC vtAKFiQZugbGGTtgIjYDi5ZrFjoK9HzH/fWrxAdqKdJUphM5tDc1BEL4H8vl3I2vW1dxI7 f9sbFvFXNoGffyHGTEVE+rpFPTjkGic= 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-449-yotncJWKPG2M5BdHehR4IQ-1; Fri, 26 Jul 2024 08:47:20 -0400 X-MC-Unique: yotncJWKPG2M5BdHehR4IQ-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-369bf135b49so1054092f8f.0 for ; Fri, 26 Jul 2024 05:47:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721998039; x=1722602839; 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=+RI/VaWGAXgOj4f2LRD8sZvA9wQ8Bbq5V+URVVIVY/U=; b=qmlt/uP2YEdASuNdo1wNM9pQYT+kE3rEmpUsCgLFU4HfhXH6mtdQGizdeLFJLsf8Dn NgO9aJIzxNOCze3zpDyjg1uRHDQzHdJ3cDiS3+xW5DIVIWbA5an0UOlZdTu6pEjrCffG +Du80dxULveDN9p34FMwJ29YM4K6UDx140n5nrBUf+Z1148VEaYEUTgzzo8+a0drs3wd 3l7gXn62alV+kJYL75FzhB2gYUyBt8szZP5+S10AfdgTzVIeDxIpnlxVxwfOWN8EmJyd SAK3fr/XTjKtgE52AUB552AuCfVADiX7uEy3LXI1/NUvcSsBFQRtVqRIbD9gZ7/SvA67 R54Q== X-Forwarded-Encrypted: i=1; AJvYcCWWWld8dA83GW1mWtvbl4fN0PUPDaR75QnWxpy7WviYJDMpP15anazWED7OwIwQRqdHW5rEb8RjZ84TnXfv+wCzuIW8Y3VZahgctUdA X-Gm-Message-State: AOJu0YzNhAY8thSWRa4BBkXLYpVH0CP1Id51cplVdjBNXBA2SRtF9rSp WKVD0zo+6FwFRTCmv5Tby+G2Ond9G8g790+s3S54DzS5t9a7cujPk1+B7kKuP5TI+9oRlwiRYhv X6ksAqyxz4u0OFELN1dmokRGF6AwKdMOlwnQ2pyOib6nWFoEq00nOMV+d1/JTUSWy673Diw== X-Received: by 2002:adf:f802:0:b0:367:40b6:b90b with SMTP id ffacd0b85a97d-369f66a36dcmr6227083f8f.10.1721998039088; Fri, 26 Jul 2024 05:47:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDA1wA77VLVH0wQPd6DrvSmW8M/g+xgdd7FFO6J646GDTZZ94nA7gUMdnSx1MXbGPQ+LmlFw== X-Received: by 2002:adf:f802:0:b0:367:40b6:b90b with SMTP id ffacd0b85a97d-369f66a36dcmr6227065f8f.10.1721998038420; Fri, 26 Jul 2024 05:47:18 -0700 (PDT) Received: from redhat.com ([2a02:14f:1f7:28ce:f21a:7e1e:6a9:f708]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b367d98ccsm5031156f8f.33.2024.07.26.05.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jul 2024 05:47:17 -0700 (PDT) Date: Fri, 26 Jul 2024 08:47:13 -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: <20240726084424-mutt-send-email-mst@kernel.org> References: <2a27205bfc61e19355d360f428a98e2338ff68c3.camel@infradead.org> <20240725122603-mutt-send-email-mst@kernel.org> <0959390cad71b451dc19e5f9396d3f4fdb8fd46f.camel@infradead.org> <20240725163843-mutt-send-email-mst@kernel.org> <20240725170328-mutt-send-email-mst@kernel.org> <20240726010511-mutt-send-email-mst@kernel.org> <20240726012933-mutt-send-email-mst@kernel.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: On Fri, Jul 26, 2024 at 09:06:29AM +0100, David Woodhouse wrote: > That's great. You don't even need it to be per-vCPU if you let the > hypervisor write directly to the single physical location that's mapped > to userspace. It can do that before it even starts *running* the vCPUs > after migration. It's a whole lot simpler. It *seems* simpler, until you realize that there is no way to change anything in the interface, there is no negotiation between hypervisor and userspace. If I learned anything at all in tens of years working on software, it's that it is never done. So let's have userspace talk to the kernel and have kernel talk to the devices, please. There's no compelling reason to have this bypass here. -- MST