From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 AE9EAEC2 for ; Sat, 12 Oct 2024 00:06:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728691598; cv=none; b=AQBsZHSkq8SpTgT6YwB0R2kwKQOkeQcCfLhe/ogz4TRovtH+3YMjXR1nu22XYiS9YVufjz8/84yYY1xIKm2vl9rLah3ZhYv6x9OnQDPFaTy4phaeUb785hFwbiSxL0v9HcjBjhMe81U3gjTIcIaVSt3NsqvH0/a1Trwn80uINEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728691598; c=relaxed/simple; bh=t3TLNz2E4rgMhV27LFTKr+9sh/ErwejAIcLrZeG/qJ8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=im/TqoyGE3TtPFZTCvNiNh+3HZQKPExT5fK1AXKRU1bLrV0Z+e1MqM3vYGF2tK/A/Duc3GVQop7LEd17yi8IJq7hRRWiAFpTKMMwOOAuRp/SKp0gNP3HhfNYsWOS8fmiOW9laIOyVfnXPuTX5lylvm3dVCaU9rwAbnHgHQWPdi4= 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=bmcyO5A1; arc=none smtp.client-ip=209.85.128.201 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="bmcyO5A1" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-6e28b624bfcso39771927b3.2 for ; Fri, 11 Oct 2024 17:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1728691596; x=1729296396; 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=/nRmpiTGInlZNsyI3l1+i6JO6oRaqAjuAzuB7Mjk4IU=; b=bmcyO5A14ORv3MUxSEyMj+QSL85zoQUr0SBHVORYZas/pjpIPtHg0mL7Yi3uWGwO5h 4peewKDfF5wwz4PN6M0+VB8EuIIFNKTPW/zDlIn5HE8Uz6Uit0CwTG2cGX96pSZ5202l Q8BGjSn/Q85ZcVRYAn9fE9E7Gl4QEZb9vEF+J/ak/DoGhi5Wv+w2fcqRtFO7QhJEzP81 PfXdJmnErYj6CBhd7gqrUqE3mM5gT4IQItrROE3sXaM2OydLpJ1wBFehYcY/EbML4TZ2 tU+rhYGi7f3qoC88snwQS+TqU/lyaLHOiWi5VY84FsfZKUSlHYJcOFSMlKJt+tErNVbA FuTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728691596; x=1729296396; 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=/nRmpiTGInlZNsyI3l1+i6JO6oRaqAjuAzuB7Mjk4IU=; b=d6e1WlFS5IqabkXxsMpNHoh/97j9DhqZ3SZetJe2LgbV3lKRsJtElNMz9aOait5luG yR6rDH0amdkNlle5q+nvxDcI7TbnvutzTylpHn81BIpBz69vdzmct61hGc+o6Ga5nSa/ ip6GQ+QtP62wseYGcMR3ymU3JNek88Vq8wxma/EVJLSCyJskTO9sSeTN3q42h3UVVANX jbZnd1W3laBVOWSpKwldg8zTKBar7TQCBxTiLDcGRMmI4SYhLXS+Q24dXL1jraLTlUdZ qBR8qa7eQWS3ksU8YX5Th1MYTrgEUvi4dJMqvRg5PlJvxklI3O2e5FwyJwN+9jZc9GJ9 91aw== X-Forwarded-Encrypted: i=1; AJvYcCUjwafIQR4I03+kaxMj2wt8FT925eWjOfu/h+7wrJMAhCwXN5pIsFvHJ173TYF5LEacQTlmwf3MEJB+qdA=@vger.kernel.org X-Gm-Message-State: AOJu0YzKFJBPMLALjnGv0Y9EVPauv5oWmt4MzMeWj7z5Ef51tu/7jYh3 RPxkZIG2jLy468iwEL/8bFmM8RrNra5lXJHmCHhrRCoJSoFYLoaCycr7233FoFApJSC0VsF3Tyb Y+Q== X-Google-Smtp-Source: AGHT+IGmg1G8D3iaZFPKbxx+zXZg3+J8J46ueYAFXlaPRYj8EeGFAmMz8qDSVUrjhu3L0gi/qS6ZwxDhQbU= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:9d:3983:ac13:c240]) (user=seanjc job=sendgmr) by 2002:a05:690c:63c7:b0:64a:e220:bfb5 with SMTP id 00721157ae682-6e3477b451dmr1379997b3.1.1728691595692; Fri, 11 Oct 2024 17:06:35 -0700 (PDT) Date: Fri, 11 Oct 2024 17:06:34 -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: <20240927161657.68110-1-iorlov@amazon.com> <20240927161657.68110-2-iorlov@amazon.com> Message-ID: Subject: Re: [PATCH 1/3] KVM: x86, vmx: Add function for event delivery error generation From: Sean Christopherson To: Ivan Orlov Cc: bp@alien8.de, dave.hansen@linux.intel.com, mingo@redhat.com, pbonzini@redhat.com, shuah@kernel.org, tglx@linutronix.de, hpa@zytor.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, x86@kernel.org, jalliste@amazon.com, nh-open-source@amazon.com, pdurrant@amazon.co.uk Content-Type: text/plain; charset="us-ascii" On Fri, Oct 11, 2024, Sean Christopherson wrote: > > + kvm_x86_call(get_exit_info)(vcpu, &reason, &info1, &info2, &intr_info, &error_code); > > Wrap. Though calling back into vendor code is silly. Pass the necessary info > as parameters. E.g. error_code and intr_info are unused, so the above is wasteful > and weird. Ah, but the next patch invokes this from common code, i.e. can't pass in the necessary info. _That_ is definitely worth calling out in the changelog.