Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4698878rwb; Tue, 17 Jan 2023 04:30:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXupBwfrNjgOS/LjPPkHeozjDAs2LZRy3EEIF7zlkYm4/juxGeqrn5nc0x54k5qSr3J3mfCE X-Received: by 2002:a05:6402:1956:b0:45c:835b:9448 with SMTP id f22-20020a056402195600b0045c835b9448mr2560611edz.4.1673958616450; Tue, 17 Jan 2023 04:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673958616; cv=none; d=google.com; s=arc-20160816; b=q1cYwPu9aTLBAOd3zAg36FCdisshd4CAM+QFpWBAznLjkoIVer6tV9uBO6rbP13RsE lP411cUN7JTnCGHc2Zy2xRJzYRMtEVlFf2dI1v8agCI60Z52/V8K/fWs3anM9ELy+BI9 kwklerY+VSj0JReJUES8c2R95oTl4kZqL+Uc9JqTpRtjUAie1MfY8NKGyC+XrSwZZlD1 57w9Dc0PKQFF8fLQJZ+yvpOG1XUEZjUC4XeMywXw3zji88mgMYwbO3dbKT0CzRrL9jKz soOi64CZQM3CUsIp4DEZyVud8GuXsTMqA5FSU3EvkPepIB15QTs/RnHd95HVe4khmZ2Q QRww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KPcxEANcwfX3iqDYXrP0qaBKg/IIzvrkL1jXD2O4/YU=; b=COOR07SU+dVflw8nrGOceTlwjcYnF8dQqcVzY/lSOzjzuLrAsPbcTYYNkAa2YVhtrf keXlT/kY9x+4bZQrH1BDAQo3f3QaLpLjD3RfDccxutcwurNW3ykV7j5aUjtsEHLBJHdW EwUMab4uBTY35mCpwiY0Btn52aoHk7pH68XxlOi1MHnrxIQ257TOgsCUHmIPy/2YpAjC TzVQ2Ogoy5EHCpAO5ofgBRqUJVGqegnZfM16b1/auzBNNA8DzcfyNTj88A+umKxySu8N jnX49VY5KfG8bu1L0tNW8LRz10UVVh18aSQb4iaeuwLjFgEpIRRnyaziyx/8E2Y4/3vK bdRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="T37/fdyH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a056402191000b0049d11b2a297si11861798edz.598.2023.01.17.04.30.03; Tue, 17 Jan 2023 04:30:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="T37/fdyH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236485AbjAQMXN (ORCPT + 49 others); Tue, 17 Jan 2023 07:23:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236237AbjAQMXK (ORCPT ); Tue, 17 Jan 2023 07:23:10 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD7432B603 for ; Tue, 17 Jan 2023 04:23:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KPcxEANcwfX3iqDYXrP0qaBKg/IIzvrkL1jXD2O4/YU=; b=T37/fdyH3s0FoXrIwst2EWKWW2 gWZV1W+E91gwq1HK6a/49VgIdqo+idZ6XnC5EolsKpR9J6SEA4x5mV228YM4nl/LqVkHXAv87cJHg AJE7gQpSpVbHwcysQlQQvz5d2KUQpnTwfNRun33w361Zbw4/eNEQqe1AbkaGLU75oBwowWHcS0HL7 nP1LPydHLx7ZFZlAjm46I9fu01OOn1589OFzsMSMprpw34deb7I+GBxJa0tA8ywqvRqcbv45sYaHp huG6eQ3fAi/BuUQkxeMmOF/vQ/aRRDhp9PWAihhrUxezDkp53guytzHb8K3MN5IuPYzM0htYLo7Ra DUtJsC+g==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHkzP-009fbF-JC; Tue, 17 Jan 2023 12:22:55 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 361363005C9; Tue, 17 Jan 2023 13:22:41 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 15B9420B1647C; Tue, 17 Jan 2023 13:22:41 +0100 (CET) Date: Tue, 17 Jan 2023 13:22:41 +0100 From: Peter Zijlstra To: "Srivatsa S. Bhat" Cc: Juergen Gross , linux-kernel@vger.kernel.org, x86@kernel.org, virtualization@lists.linux-foundation.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Alexey Makhalov , VMware PV-Drivers Reviewers , Boris Ostrovsky , xen-devel@lists.xenproject.org Subject: Re: [PATCH] x86/paravirt: merge activate_mm and dup_mmap callbacks Message-ID: References: <20230112152132.4399-1-jgross@suse.com> <3fcb5078-852e-0886-c084-7fb0cfa5b757@csail.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3fcb5078-852e-0886-c084-7fb0cfa5b757@csail.mit.edu> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 15, 2023 at 08:27:50PM -0800, Srivatsa S. Bhat wrote: > I see that's not an issue right now since there is no other actual > user for these callbacks. But are we sure that merging the callbacks > just because the current user (Xen PV) has the same implementation for > both is a good idea? IIRC the pv_ops are part of the PARAVIRT_ME_HARDER (also spelled as _XXL) suite of ops and they are only to be used by Xen PV, no new users of these must happen. The moment we can drop Xen PV (hopes and dreams etc..) all these things go in the bin right along with it.