From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96ACE221D94 for ; Thu, 8 May 2025 23:04:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746745470; cv=none; b=IyBhhD7EZcH1h3kKzxixlyXGFITQDuA5y9OoV4/TN5CUfDVP0qPysReI7/772izwU+dmekRmxwoOGoe8BERvB4RkEWNQFCQYlumRdv+hci2UblOV38+YBWkxaF+91c7fcUZ2gjWEEZ7mwAREVFR91WlqhKLwZtmw8DUUBr7p9hc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746745470; c=relaxed/simple; bh=JzRxuCHHEoe0xm2svplJV/PWpn9/fOwK048vkaL1MgA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=UXiRa4Bu6B4n6AIpeX6+AJODK0orzsu4BLzHba/CKOk2e4qSvYOCSG6P15F2OCIDfeS6Iktnb+YDgtmd02y4UFU3n4t0wplOsPsp9kbN9gKNMahmghnvNzFHNYNX/NI7nq477uoJ60yelTTRCMaYPsOyl7I6rooaDCsN+tiE5RA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=smqmNsFy; arc=none smtp.client-ip=209.85.216.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="smqmNsFy" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-30ad109bc89so1739820a91.0 for ; Thu, 08 May 2025 16:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1746745468; x=1747350268; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=2TEJVC9pdMWAaVUNB7HuRZMfxNu+J4vzTlXLSvKGeMY=; b=smqmNsFyVcu04Iij/mGffHqHmixk/4X0jJ90rJtbku8MZ2c/yo6KhXfpkC8drKhdcj ZXJdlyWSSxKLpUAfwhP2P/LDJRIrQYlXZYKMUfVBHgZZdUDSAoGIxFlhiw93qbi3NdvQ 1F4tZQXVGjk7nBS+RDpsgskXLoMrkKQFrlW16YZBRp5RHjiMFN/oVL5XEvtvYZIqyO3A mHJjpVPqU4AQ1t5S07LApWAGOC6jp3KiaB6go05yPQz80+wUNUQsji27aB90ICWkBuIO 3vqaY0c8IjoYWayyV6hnuPQt3gW7trOW/GidDoi2UGZ3wrvC0zVz8LP8lqWIhbrNMErA p4gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746745468; x=1747350268; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2TEJVC9pdMWAaVUNB7HuRZMfxNu+J4vzTlXLSvKGeMY=; b=Y/Io3uPNnJ34M8p6hs9aNq9/qQi1eY8AEIYMAm5ez7ydGQGSNVMO74l/TRbXnUZ0p0 Fq/c+RJQvxMcCKfkAnTgb+qqXpqULfx0uglu2IRuy6gXlw5TJoFwRZfNoda3LAVygWAj ez8wQkoGhfX6v+Xz8GSiCYFGPjyLklZORz2UOLBUXoqILmhm1teodQt0WIO3Zv8RPe9H s80VvrnkQnUe8ebqbBrWjE3YjfuFlbBm7rFMeiMBNyWOaSBy8KWcs9b9JQElFq8MR4z6 q6XYmLMFbcA8ao9IsNWvXJ46hTqK53g+hV4HGoyqqXAKwggduACwmGc8DVZTZYCpEmmD uqog== X-Forwarded-Encrypted: i=1; AJvYcCVoxiGpwbxO1+pu36hYyznyvU0q+EEN2dzUjlBV34jhWhO0mAOx7LvaonLvYmi556BrMJs/bch7gI6VMwU=@vger.kernel.org X-Gm-Message-State: AOJu0Yzz2xux1gExVh3hxWzYcIBUg8NmLdUl6XlyfU36X22CvZmXoizV bSvrV7PfR2+gHZNc0oSXtmTIkNkDk4m1Ph3V9nN3kXlM17rW0L8mCT7+jvpJU6PGBVDOyLcp1bZ JKg== X-Google-Smtp-Source: AGHT+IH6CyLxRoG5aV2vlGLPfd+CFf1M+609PaVUlqb+8J1uGMaanS7q1+sS7ACFHR15KEXEFz+dfgO4qO0= X-Received: from pjp12.prod.google.com ([2002:a17:90b:55cc:b0:301:2a0f:b03d]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:52cf:b0:30a:4700:ca91 with SMTP id 98e67ed59e1d1-30c3cb174bbmr1795676a91.1.1746745467893; Thu, 08 May 2025 16:04:27 -0700 (PDT) Date: Thu, 8 May 2025 16:04:11 -0700 In-Reply-To: <20250506011250.1089254-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250506011250.1089254-1-seanjc@google.com> X-Mailer: git-send-email 2.49.0.1015.ga840276032-goog Message-ID: <174674524889.1512631.9502586158459413855.b4-ty@google.com> Subject: Re: [PATCH] KVM: selftests: Add a test for x86's fastops emulation From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Mon, 05 May 2025 18:12:50 -0700, Sean Christopherson wrote: > Add a test to verify KVM's fastops emulation via forced emulation. KVM's > so called "fastop" infrastructure executes the to-be-emulated instruction > directly on hardware instead of manually emulating the instruction in > software, using various shenanigans to glue together the emulator context > and CPU state, e.g. to get RFLAGS fed into the instruction and back out > for the emulator. > > [...] Applied quickly to kvm-x86 selftests to make it easier to test's PeterZ's fastops changes, and to get early test coverage on more hardware (in case my assertion that undefined arithmetic flags are deterministic proves to be wrong). [1/1] KVM: selftests: Add a test for x86's fastops emulation https://github.com/kvm-x86/linux/commit/5e9ac644c40f -- https://github.com/kvm-x86/linux/tree/next