Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp693456rdb; Thu, 15 Feb 2024 12:19:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUg3HdTMd8hhqyx+q5hsxn/p1MhPgB/gxsB+XN0hXUCjKPjGgtCrc72QjC7Hl/QWQqCPAoHcMRI97eMXWFszrZbB3O+0ZCYlyufZs5jWg== X-Google-Smtp-Source: AGHT+IGN0Q6aBXfwXwEMScZDC/YWmFcxdQKC0PHyKkNi4u3+i3PwqJ73eF8vKMLAbAuzsqI71aaM X-Received: by 2002:a05:6a20:c792:b0:1a0:6d4e:57bc with SMTP id hk18-20020a056a20c79200b001a06d4e57bcmr3558881pzb.58.1708028374935; Thu, 15 Feb 2024 12:19:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708028374; cv=pass; d=google.com; s=arc-20160816; b=UnatEruCs7uazFCRoyXJoznU2fcewiRAbTvE/AElDDhxyXoYnYYtLArmHThKvfpDbK 0cRCMnWA/t8PxBeVP9063L4RYLE0w2QuZGjv+TAl9bZl6rGhlkQu3N+ITMOIUSMc7Dzf rqDaZbLN/8VE2+cSfyEtaNqEFPC/pYofKc/Yh0Oh94h2n1NsmFSl03vKlX6Oe1W8FfHz i1fWznrFKWT/GPuXk9dHNRcoj/qT6u8oVzNNYk2IJyDgD1J119uCDMkajmu1Wx9/L/R7 U5BEgPWj59S5hdppQ6Pu82W2NUaXsok8wlSfKKDEOsfLk9wyUKYJ/4+9zs5lSOE4BZTJ E15Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=gKIub81Sc4Nl7uCdniCI0jeJfd0LuO+w541ahUUiUW4=; fh=Pc8nMAtwR9Ebwkt+zxPF27MHVPO02oGreo8Y2KShakA=; b=0mKtdqp/jK1DrT7+gEuQRpX5rit+rNoxnmjkQysJho04cWY3gEl/SVlQKqNTZNJBMT yhF6tL4l7u5e2Q0BUTF0tPNj2x+ESuqVve51qjBhPEz/7Z2Kj2uS4DWuXShU1t74hEu0 ZkYU4fWmjx0nawsW0+ioRYx4WZQXkg+osk5YXdbr7I7nhk/Fp2mT/kBbRwENjuRy7CJa TnXgDdGMNk2fuVjIEpivQuqdChuTBp1BmtVYFCocKD046Y8RIcEwZLrPpN6SY4uyKWU7 eSKEKUJ6NfiVk7sgp+gv49bg7uriMssst2G1Pj9ZG206j0W5PMLWOV9amnXD1vE1Dsd7 zFXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=l0gOqppm; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-67640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i65-20020a62c144000000b006e10c8142e7si1654815pfg.282.2024.02.15.12.19.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 12:19:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=l0gOqppm; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-67640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 74E05287EFC for ; Thu, 15 Feb 2024 20:13:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21AC413AA3F; Thu, 15 Feb 2024 20:13:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="l0gOqppm" Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) (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 27FE913A898 for ; Thu, 15 Feb 2024 20:13:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708027989; cv=none; b=OUamfjfocKKGzihvGnviHBfkzq0imtovZCe1fiQneduMFUMp/WVu9B1rICuw3fTy243vGuP3cTcEEqnejF21J/FB135V0qvAYk7bZzaw31FpcjijfIpGF7Ur9w3Wx60Nd6nPdCmtg1h9UvewmPXzQJSADj4jI9iPnOgGuq3PjcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708027989; c=relaxed/simple; bh=qOqvElTaarBcrxNDQK0w6KO5cXuq7tPFNungF5/n584=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GvCoBBBOk842rW6CwigIlxnzwZM6iiwE2NF6DRahPwOCUBUdw1TOfpCrrwoI0g6t3RrREvJCGyBrsNPz5+/XU7ztX7JSCxWh3u00YWFBFstYre+6mCyfMH8O7cP2218szfpkTnDiOE/aD8TIqZbPlMMcHt9pMCFSyGVpgD5G6BQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=l0gOqppm; arc=none smtp.client-ip=95.215.58.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 15 Feb 2024 20:13:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708027985; 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=gKIub81Sc4Nl7uCdniCI0jeJfd0LuO+w541ahUUiUW4=; b=l0gOqppm1Q6KVADGlmEX/Qv2lrl2UtknDOpK8InCI9cnIPEVogV/zsySi6pGfUM6W71ZCQ izbiieMZAhkmttwc4s6yZju8UGSEbkW7dAeOfDdt2lb9m7e9QgHkZW08JeoV5HYKX0hMMh KnmJrgqQgGxD4R4SvUTJ5H8PQq/CEAU= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Sean Christopherson Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, David Matlack , Pasha Tatashin , Michael Krebs Subject: Re: [PATCH 2/2] KVM: selftests: Test forced instruction emulation in dirty log test (x86 only) Message-ID: References: <20240215010004.1456078-1-seanjc@google.com> <20240215010004.1456078-3-seanjc@google.com> 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: X-Migadu-Flow: FLOW_OUT On Thu, Feb 15, 2024 at 10:50:20AM -0800, Sean Christopherson wrote: > Yeah, the funky flow I concocted was done purely to have the "no emulation" path > fall through to the common "*mem = val". I don't have a strong preference, I > mentally flipped a coin on doing that versus what you suggested, and apparently > chose poorly :-) Oh, I could definitely tell this was intentional :) But really if folks are going to add more flavors of emulated instructions to the x86 implementation (which they should) then it might make sense to just have an x86-specific function. But again, it's selftests, who cares! /s -- Thanks, Oliver