Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4356633rwi; Sat, 22 Oct 2022 08:50:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6uBB/gbYDcPKM3hB+MWakBkHK8KvJ8fFLH0F5pm2O8/VFah/4eZLcIOGXIsAwJ98FKDQug X-Received: by 2002:a17:906:730e:b0:78d:94ab:77c2 with SMTP id di14-20020a170906730e00b0078d94ab77c2mr20405971ejc.639.1666453827268; Sat, 22 Oct 2022 08:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666453827; cv=none; d=google.com; s=arc-20160816; b=SBeca7JGvNnRaO/6vKxKEnVP0s5icJ/+uZ1dfn65DfMl7LH+kpdT5VgcKgG0fgrY35 j5gr4R+PyPH8pXOctbYdiOgrB6uXRzW/ogY45VQfzdeK1m04ypeACn4vZs68JWMzqIMm mr21bXDU1XPFJijmiC9i761sKfyNGYEJDsXDXcZ0lcPLV89FzCyaPr6oW5SabIGYaRi7 1aVRIXbKcOFnrXqjNbwM/r7tXSDH7gmFZPC0LNSAzpnhJjM9x1d9knZTmFylk4RRacmB 8EZHAEFF3ZLSmuK47+tph865MT3UJUqXlX1ySodN84vBs1rpZJjVIJdaL9zVUJE5441p Utjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SFuETpa6kYA2kfLTdzptBf2PIFoZB2DGXGMPa7uX8z4=; b=PYKowuzJgi+cXUFYWFPhrBg3glmAezecVDKVx7ClausfjbNDTO8kUx6+eQj6ViSnkw nsGvwX9EZJwZhz9sge9Z6UcBYcrcuqCUSXFNqup6yFDt8bJcZ2iBjkyHZrIm0p5ugvNU SNcBBbmVweNon0PHdtAPbiyuyGAU26cXNFqo0yd9HQApHjs+BjVvATei7fb9u6iv2kJv uw3hDpE2vh8ox6Cc2VF8IUrePQau/UF99FpqTIGghb5J3H1LliXA3V77GDdVCKWFuJSY Y2f0kZQ9OlVpl3a4UKsXskViZt+B9+dZdFHc5DGbov2rdziH2P5ZHGYjPj+nkHj3KUN5 oO3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OiMD00Ws; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a50e707000000b00459039258b2si20184632edn.289.2022.10.22.08.50.02; Sat, 22 Oct 2022 08:50:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OiMD00Ws; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229917AbiJVPsf (ORCPT + 99 others); Sat, 22 Oct 2022 11:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbiJVPsc (ORCPT ); Sat, 22 Oct 2022 11:48:32 -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 ESMTPS id 9DC2A25029D for ; Sat, 22 Oct 2022 08:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666453707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SFuETpa6kYA2kfLTdzptBf2PIFoZB2DGXGMPa7uX8z4=; b=OiMD00Wsw/FeM4lo8DUZClX5Lnv/o8U5r+1OrYjTtyPfhjqLXKj6qyxLLTJFqZwGYl8K4u Xtd+TAwqvnuLqUZDbRqjYeRNMe6L21eDgsXRdxPrtT7ERsm1jyax0FUykTLIdZdJ0jbgxq zCLSia6f909+CpCpiMjQ161QamV6Zeo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-465-Pe_Wdq8lNOudrwKkAqkw_g-1; Sat, 22 Oct 2022 11:48:23 -0400 X-MC-Unique: Pe_Wdq8lNOudrwKkAqkw_g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 56FBE862FEC; Sat, 22 Oct 2022 15:48:22 +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 ECC3C4A9268; Sat, 22 Oct 2022 15:48:21 +0000 (UTC) From: Emanuele Giuseppe Esposito To: kvm@vger.kernel.org Cc: Paolo Bonzini , Jonathan Corbet , Maxim Levitsky , Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , David Hildenbrand , x86@kernel.org, "H. Peter Anvin" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Emanuele Giuseppe Esposito Subject: [PATCH 1/4] linux-headers/linux/kvm.h: introduce kvm_userspace_memory_region_list ioctl Date: Sat, 22 Oct 2022 11:48:16 -0400 Message-Id: <20221022154819.1823133-2-eesposit@redhat.com> In-Reply-To: <20221022154819.1823133-1-eesposit@redhat.com> References: <20221022154819.1823133-1-eesposit@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce new KVM_KICK_ALL_RUNNING_VCPUS and KVM_RESUME_ALL_KICKED_VCPUS ioctl that will be used respectively to pause and then resume all vcpus currently executing KVM_RUN in kvm. Signed-off-by: Emanuele Giuseppe Esposito --- include/uapi/linux/kvm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index eed0315a77a6..d3cba8d4ca91 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -2227,4 +2227,7 @@ struct kvm_s390_zpci_op { /* flags for kvm_s390_zpci_op->u.reg_aen.flags */ #define KVM_S390_ZPCIOP_REGAEN_HOST (1 << 0) +#define KVM_KICK_ALL_RUNNING_VCPUS _IO(KVMIO, 0xd2) +#define KVM_RESUME_ALL_KICKED_VCPUS _IO(KVMIO, 0xd3) + #endif /* __LINUX_KVM_H */ -- 2.31.1