Message ID | 20240131233056.10845-1-pbonzini@redhat.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-47379-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp97843dyc; Wed, 31 Jan 2024 15:49:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNCQ6dGlSoUqbCmIyitZ4I4wlBYys0CedzQbDHCeDNr24Sdd+UxpDKVsP9NP5/2z3iJhwg X-Received: by 2002:a17:903:230b:b0:1d8:e1c0:1bb8 with SMTP id d11-20020a170903230b00b001d8e1c01bb8mr3456860plh.27.1706744993106; Wed, 31 Jan 2024 15:49:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706744993; cv=pass; d=google.com; s=arc-20160816; b=0Zdha3QQn+uBZtY9mvkuwDiNrFOILkFix1ZuOfLS3RQUmVdBVhGsSB7sdKCoQVb6/c OW5gz6tM2FjSa0wEDVg5RCsx9i4f5nHMjLZeCsrGIf5tNr9RiW14bKLEV1noFrqHxCTb EjDZr9+2R68oh93wrRUVLw8c01HciyFQ8g/vF9/uqNmQNhVyI4OEixwH3WhTDbdQN+b7 RnDKb88eb4rXgLLwj2xPb6gubjl77QZp/8TzE+ZPj8u3rUUBT/2qZt4xsWd5EWb+0MiN Dqc6wGBvGWU1IbgnI8rV8VFRCLu8JRW/3Rcd66mVyuRaAubvHDmGnSOU4ukDi/o1DRd+ GZcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=M6Nv0QDSdRGQB7DAkiGBWR53UACzKTdMG5hTEw+ea88=; fh=psbwgWxxBg/r+ytKF2gG4NGExCb0LUKkfFCedntzrKs=; b=SujNOHMrrjNjh/J6lkJL5JyouC7KMm2ljB/uO0GIiyUFnnTdMX8x2Aw/3s11JFHFkh qolBTgyHhf6Bw05zcJxwPCzlPPU3umE75bBge2iz3gJzMFiiBFPgxXwqUzYdWeH1VSGd 9n783rBnpKAnB7LABOaVdrhW2K4rZzUDLwGLJWXeKlqqHAPN10v2jXn8NiiwZkoEY0fI dwQxvzm6+sVZmD8uXLohD2azOrq7lTyhmfeEInqE5BQ1CdrFUOZAAU0jMZl+6rZFHVnt C8QUVRk7JedQgZaoMCDELPFPnZLkPOtO5aq+ecCiNrVoOo2rGDEz0Vn0LTAj4Uh3ClRS g4tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YCP1/srB"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47379-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47379-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCXkU25NtwLzel6gr24VidT5WnfWH4/a4J/ulaz6FCgIRCJ+VcVI8BZ+lHTwfqNmpIUw26X1IWxlV7sPkYo7ivtngqS1bQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s1-20020a170902a50100b001d4bcc54417si10465891plq.605.2024.01.31.15.49.52 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 15:49:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47379-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YCP1/srB"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47379-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47379-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2283128F655 for <ouuuleilei@gmail.com>; Wed, 31 Jan 2024 23:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EDCF48780; Wed, 31 Jan 2024 23:31:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YCP1/srB" 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 2E5E63C46C for <linux-kernel@vger.kernel.org>; Wed, 31 Jan 2024 23:31:01 +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=1706743864; cv=none; b=SvK5aPVfugjVwjYHPVU8eTmIgX/usXQMpBlBPYwD8bGxf3f8ZAEu0EApUxa0dxtD69IXS8ee2a0VrBhubofmYQko+7ss5OM3nCcKGv5aOgjmQKrkGAd0hW/YovnbeZGyhWs+8pp7YThFi376W2xBr4O4gPGdG9QBylLVNYQbWkU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706743864; c=relaxed/simple; bh=a11DBiciXg2fo6+BDhs0EEQ+8s9DaH42cJVQm78o8l0=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; b=CU8PdZP0MJFe2XHaW8x1X6lMkOxfSbs3ftrpITsk8DPEGRqE1cTfxT1WiWxftKnvXS//N9q5o6+Btyln0WosVieJoA8XciLgfx+OcUQvVxeTYNvnZjW+2TPZ8doX/le5kPqncBGlb0F4xAk5QvFu+rbGsRHIc3xEfSEboqrdUkM= 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=YCP1/srB; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706743861; 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=YCP1/srBf3Zbdz1Gx1qtM1Cbswb7KH+L6d5Gl04ZPmU6iafky++NYczhj0ckrRDDG93Qax 5Cug2jcj74cMdQecHQr0RVSagMReGLr5T19cUrmQhOiNBFnznufQLq+75ZTS7n1aPvmyfy Wvcl4KnUv4qrUxz6iML14/ArZwH/1m8= 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 <pbonzini@redhat.com> 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: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789651838035789994 X-GMAIL-MSGID: 1789651838035789994 |
Series |
KVM: cleanup linux/kvm.h
|
|
Message
Paolo Bonzini
Jan. 31, 2024, 11:30 p.m. UTC
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(-)
Comments
On Wed, Jan 31, 2024, Paolo Bonzini wrote: > 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 Do you have any thoughts on how/when you're going to apply this? The kvm.h code movement is likely going to generate conflicts for any new uAPI, e.g. I know Paul's Xen series at least conflicts. A topic branch is probably overkill. Maybe getting this into kvm/next sooner than later so that kvm/next can be used as a base will suffice?
On Wed, Feb 7, 2024 at 3:43 PM Sean Christopherson <seanjc@google.com> wrote: > > On Wed, Jan 31, 2024, Paolo Bonzini wrote: > > 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 > > Do you have any thoughts on how/when you're going to apply this? The kvmh code > movement is likely going to generate conflicts for any new uAPI, e.g. I know Paul's > Xen series at least conflicts. It also conflicts (and was partly motivated by) the SEV API cleanups that I am going to post soon. > A topic branch is probably overkill. Maybe getting this into kvm/next sooner > than later so that kvm/next can be used as a base will suffice? I can do both, a topic branch is free. But if you think this is in the "if it compiles, apply it", then I can take that as Acked-by and apply it today or tomorrow. Paolo
On Thu, Feb 8, 2024 at 6:10 PM Sean Christopherson <seanjc@google.com> wrote: > > I can do both, a topic branch is free. But if you think this is in the > > "if it compiles, apply it", then I can take that as Acked-by and apply > > it today or tomorrow. > > Looks like you already created and merged a topic branch, but for giggles: Only to kvm/queue to show myself how it would look like... > Acked-by: Sean Christopherson <seanjc@google.com> Thanks! Paolo