From patchwork Wed Jan 31 23:30:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 13540474 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 4F0633C067 for ; Wed, 31 Jan 2024 23:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706743862; cv=none; b=azafY/zC5wZrjpLR/H3fvURqgjCuPB3b54UOmCfi/g5aNQMRHkhAnED8v2LkN3evX87KszcPhRaswZZ+ks8utShpip6LCTsH7RcMLLdV603/D7Bv7zdw3h2oF/1/C01cddz7u30Vakth2vr3TV+rAR2cL44R8syAt9IPhermGqE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706743862; c=relaxed/simple; bh=a11DBiciXg2fo6+BDhs0EEQ+8s9DaH42cJVQm78o8l0=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; b=s4QdCKLclIIbnXaeCXx2oFsfYL8fhVFJTCq2sjxv8l1JqOWeCE8T3lvZGR4CBrtO3WPJvzGz4VPlLUYDxm+DCOgW3W8onF8VTGhgYZOe9XEYtOWwpmAsvM+f9Dg15fgy/qbp8Ydt37IJ1uUo1Pvl/ZJViOa1MFeBdOg/9XrsZzQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=I5yn3cdb; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="I5yn3cdb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706743859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M6Nv0QDSdRGQB7DAkiGBWR53UACzKTdMG5hTEw+ea88=; b=I5yn3cdbCQvUiZpps26rY5vGA8wO3rGcpeA/4/k2auG9G7G7Y/dLri8Rv72GSULDsn8Yu6 wNNOUO6oHgzCayvg+fwSmeOkt56oR0ZBmsbNN2tzp/oz/Ua6lImSG293zBJ9tiMs0TICff TXBDKqx1j7QrX4LKRil7LUT60T2p25g= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-aS_si6hSMOCZEc4lBAdv_w-1; Wed, 31 Jan 2024 18:30:56 -0500 X-MC-Unique: aS_si6hSMOCZEc4lBAdv_w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AFAB638149A2; Wed, 31 Jan 2024 23:30:56 +0000 (UTC) Received: from virtlab511.virt.lab.eng.bos.redhat.com (virtlab511.virt.lab.eng.bos.redhat.com [10.19.152.198]) by smtp.corp.redhat.com (Postfix) with ESMTP id 97B62C2590D; Wed, 31 Jan 2024 23:30:56 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH 0/8] KVM: cleanup linux/kvm.h Date: Wed, 31 Jan 2024 18:30:48 -0500 Message-Id: <20240131233056.10845-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 More cleanups of KVM's main header: * remove thoroughly obsolete APIs * move architecture-dependent stuff to uapi/asm/kvm.h * small cleanups to __KVM_HAVE_* symbols Paolo Paolo Bonzini (8): KVM: remove more traces of device assignment UAPI KVM: x86: move x86-specific structs to uapi/asm/kvm.h KVM: powerpc: move powerpc-specific structs to uapi/asm/kvm.h KVM: s390: move s390-specific structs to uapi/asm/kvm.h KVM: arm64: move ARM-specific defines to uapi/asm/kvm.h kvm: replace __KVM_HAVE_READONLY_MEM with Kconfig symbol KVM: define __KVM_HAVE_GUEST_DEBUG unconditionally KVM: remove unnecessary #ifdef arch/arm64/include/uapi/asm/kvm.h | 7 +- arch/arm64/kvm/Kconfig | 1 + arch/loongarch/include/uapi/asm/kvm.h | 2 - arch/loongarch/kvm/Kconfig | 1 + arch/mips/include/uapi/asm/kvm.h | 2 - arch/mips/kvm/Kconfig | 1 + arch/powerpc/include/uapi/asm/kvm.h | 45 +- arch/riscv/include/uapi/asm/kvm.h | 1 - arch/riscv/kvm/Kconfig | 1 + arch/s390/include/uapi/asm/kvm.h | 315 +++++++++++- arch/x86/include/uapi/asm/kvm.h | 264 +++++++++- arch/x86/kvm/Kconfig | 1 + include/uapi/linux/kvm.h | 692 +------------------------- virt/kvm/Kconfig | 3 + virt/kvm/kvm_main.c | 2 +- 15 files changed, 642 insertions(+), 696 deletions(-) Acked-by: Sean Christopherson