From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6281EC433EF for ; Wed, 8 Jun 2022 12:13:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238987AbiFHMNq (ORCPT ); Wed, 8 Jun 2022 08:13:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238913AbiFHMNF (ORCPT ); Wed, 8 Jun 2022 08:13:05 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1739326067D for ; Wed, 8 Jun 2022 05:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654690378; 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: content-transfer-encoding:content-transfer-encoding; bh=yZI3jY70HIdxw3S33YmbSm1vbKbWcOVQmH/RkNv3TeI=; b=MKRhIFDb82lpk7d+n8dpOh0QIWYz2o88r92btgyhTZ11JkT1gmXCCrdfhiuXwzXvkzw8gF 3fUGWAKIz7p7l12+ij7kHEfZbPhldLGGCYeCNlgz9dNchnuQEw0rf80PcGfqtSyH3FDkrg j0DKrXYkGTZRUyyP7s5UaZHrCI0ZjCc= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-113-TBO7NspWNI6_-KV1nsdIgA-1; Wed, 08 Jun 2022 08:12:54 -0400 X-MC-Unique: TBO7NspWNI6_-KV1nsdIgA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0733F3C02B73; Wed, 8 Jun 2022 12:12:54 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id DF6521415100; Wed, 8 Jun 2022 12:12:53 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: seanjc@google.com Subject: [PATCH 0/6] KVM: x86: vcpu->arch.pio* cleanups Date: Wed, 8 Jun 2022 08:12:47 -0400 Message-Id: <20220608121253.867333-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches complete the job started by commit 3b27de271839 ("KVM: x86: split the two parts of emulator_pio_in", 2021-10-22). The commit message eloquently said that emulator_pio_in_out "currently hardcodes vcpu->arch.pio_data as the source/destination buffer, which sucks but will be fixed after the more severe SEV-ES buffer overflow". Some time has passed and it's high time to do it. After this series, in-kernel PIO does not use vcpu->arch.pio* anymore; it is only used by complete_emulator_pio_in. Paolo Paolo Bonzini (6): KVM: x86: inline kernel_pio into its sole caller KVM: x86: move all vcpu->arch.pio* setup in emulator_pio_in_out KVM: x86: wean in-kernel PIO from vcpu->arch.pio* KVM: x86: wean fast IN from emulator_pio_in KVM: x86: de-underscorify __emulator_pio_in KVM: SEV-ES: reuse advance_sev_es_emulated_ins for OUT too arch/x86/kvm/trace.h | 2 +- arch/x86/kvm/x86.c | 119 ++++++++++++++++++------------------------- 2 files changed, 50 insertions(+), 71 deletions(-) -- 2.31.1