From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) (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 B75A9381AFB for ; Fri, 31 Jul 2026 20:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785528710; cv=none; b=smB7K2byTUvwpiBilWegIU8PwDkHLKGnO350OwLuCjDiBjY+OvaNeXTtZ+mSJluTwI22xTTCcCUjAe5rzQLR7MjbxkXY3uyU0rbQh7oWHOr9TTbC3DpnGsdYUvPDmBw1gZ/lJJi7jNB1/FEKfYZmKHrsYE05HKY4zJXKvAVOBmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785528710; c=relaxed/simple; bh=33e8ObnVADSbfFZgUMyvgoQvOwBUQ+VNku56S/k47s0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Uyb74wRixz0i2g+hXpcU6RLNMaimCSqJrbW1qhk1qa+K67ZFFDdb26C9AUkec7u78YcXNUolDBJkDJlOqpM8slQ982l6OpVhUz5eme3eWwfVBcY4kwdE7Eu+Jz5X9L7ixE9j1itb90h8iWGXDwg6ZqSa+HqcfA6bBlOIWiNMUGs= 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=Ob7+dPIp; arc=none smtp.client-ip=209.85.210.197 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="Ob7+dPIp" Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-848d21bbb55so2440815b3a.0 for ; Fri, 31 Jul 2026 13:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1785528708; x=1786133508; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=bxmXIU2iY4wJrhpgJP6fox76TKpljehd+FqjXTThCRg=; b=Ob7+dPIpFlKpe7Ne++zSPvBcrkbuLIXB+tkm6wEv4Rr+tVtzJ1+9R+EQ82D4sOSuBJ j4eh09Ni8tHDB5tJQg8LOL/VLMGE+XD+0tkCLxVqnxQhREiTOOD0oTWoFuQwHkZcFY2C n7WEP8koDmACJOQeAM1m6Qsf9NR6qSk6OwFRyFbGuqDI6q87heESDzwzyHOCnl2VDWcN mOajs4tCqJre9whMA69MSa2OcgnLMLFp+yrcf5+7zbSSmcdeOz3KkvFaeIFt/Hzt8Goc xclWEGxlNx7h1IAHriHiV437hX6L5gUdQlf3Ty6TFU+Q34elJHgEbhCYpsg3vnbaBhim CqNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785528708; x=1786133508; h=content-type: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:content-type; bh=bxmXIU2iY4wJrhpgJP6fox76TKpljehd+FqjXTThCRg=; b=mOxm9waFc6fdnEoST2FL6/nbofCJjqg9Uq196qU7PwkyUQCjQXLXXkL7tZRExCHVmK yMjpHEGD+Jqsp0fbF71fcuP/UUdH051tO0ZjA5MkNbgp36i2o1wiuHcJyCKTguRPdp3U BCX1yPJ7PyiKRSw6l5V+SjeULbojSEe22BR9bbFlUcBJMQmPFYJh+05dJclYRkqUtejU IKVzbM2sNoCvVdcvwUFgXpe4hvLRBlbpwhQ9wSaTf6LhFrkKSfw6JMuGZ93forsYMZE4 zAuSOiBCS7UtxMJLeixK1Ab1pFzQou/44GhTYJR9NvoGhJIKM9R4ma7Jfqw0LGFbtX3k g+Ew== X-Forwarded-Encrypted: i=1; AHgh+RoSAUGa5oA8suPVhf/rJGJ7biEX009S+S1rYegQZ0tHYsbK45vAn9pKl+v2VFgN4V+fQbg3lFgitswqK5M=@vger.kernel.org X-Gm-Message-State: AOJu0YzG/1rNfrnY+5GRZLw/E1W93BQqyEySS4teyRlZ+9cl5qQzGsBs +6kW/7WOVOvxmNGQYgs2ix/iS3ED5elaMpqHDorEHKX4oPrsup6pW2dLP+tso2ZriqW2QWQ7z23 DCSc0lA== X-Received: from pfbfi13.prod.google.com ([2002:a05:6a00:398d:b0:847:86de:a817]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:92a9:b0:848:63fb:fda7 with SMTP id d2e1a72fcca58-84ee48cdaddmr811949b3a.44.1785528707582; Fri, 31 Jul 2026 13:11:47 -0700 (PDT) Date: Fri, 31 Jul 2026 13:10:11 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.55.0.508.g3f0d502094-goog Message-ID: <178552822130.2706707.4814565423555232517.b4-ty@google.com> Subject: Re: [PATCH] KVM: SVM: Always intercept ICEBP, add INT1 selftests From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Shuah Khan , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, David Woodhouse Cc: Andrew Cooper , "Saenz Julienne, Nicolas" , Maciej Wieczor-Retman Content-Type: text/plain; charset="utf-8" On Thu, 07 May 2026 12:22:24 +0100, David Woodhouse wrote: > ICEBP (INT1, opcode 0xF1) generates a #DB that is architecturally a > trap, but on SVM it was not always intercepted. Unconditionally > intercept ICEBP on SVM to match VMX behaviour and ensure correct > event delivery semantics. > > Add two selftests exercising ICEBP: > > [...] Applied the KVM change to kvm-x86 svm, but omitted the selftests, at least for now. [1/1] KVM: SVM: Always intercept ICEBP, add INT1 selftests https://github.com/kvm-x86/linux/commit/ec9a16c6aeba -- https://github.com/kvm-x86/linux/tree/next