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 X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D69CC07E9B for ; Tue, 6 Jul 2021 14:37:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 684D9611AD for ; Tue, 6 Jul 2021 14:37:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232360AbhGFOka (ORCPT ); Tue, 6 Jul 2021 10:40:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34326 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231707AbhGFOk2 (ORCPT ); Tue, 6 Jul 2021 10:40:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625582269; 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: in-reply-to:in-reply-to:references:references; bh=CQBCB+bMahID1ZaCZKHNYR0DExf7wMJRe389TSgL0HE=; b=YXf9IgeCgP8PLmGtTyboO6+Wj6kgvOmRN4TDsoQbT2X5ECcWu1TKoDtvOpduJJuyvsSsAx fE/BH9XWiBpKuVLaHw61S/Heu2wD3qseAZeBimHEMSf5+LPTLif5OrhIE2/4bmhbRjhMiv xBisZbqL+/tlrqqglhwGuQ3tX6Sc7Rg= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-255-VAKsg1tsM6GvlTRk0-hWzA-1; Tue, 06 Jul 2021 09:47:35 -0400 X-MC-Unique: VAKsg1tsM6GvlTRk0-hWzA-1 Received: by mail-ed1-f70.google.com with SMTP id w15-20020a05640234cfb02903951279f8f3so10847260edc.11 for ; Tue, 06 Jul 2021 06:47:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CQBCB+bMahID1ZaCZKHNYR0DExf7wMJRe389TSgL0HE=; b=dYuu64FyFPif1AmvbEuP9XAMcSQ7ASCpgnVxnnkti+d62fMOC+Tvh7fYduM7n2CNu6 vRlJGh+x3uOMx9ddeJwpa0Q50v9fcqugR7Zqu6eppEgb77DpPb6TNUV5w2kcuopkCEVF MPIrrz0Nsw2kJ5cKKyy+AfFvT49uQwLPd/bJ162/89uBKIxVQUJwv/VNuhRNrwstjOCN VJf5x+QS/Au0BOYIdQ7L512Dmc+a+FGmdBYEWu2sAQOyY414j0xA0WdOhvsfvWEAL7Ap d5js5B3CSOwFRKqc8j55t1VhQl0OpFGLOv2yADHgJc9l9VQoLKxsoEYLxuGKLwrv1cp4 dbQg== X-Gm-Message-State: AOAM532dk8Dx9bXE0Y1k7W92A8WTMoHsUXI2ccX4Kaf1w62Q1vmvILal hJKYFDCik7oYXpr2mU7ZRJMboGwb6UCQ/wpRlj89/ObL0UMfu4JQMVKzN9GPAPbux7JvB3Dh9BT r2EbHh2XIM+GC2qkgX22ghrv7 X-Received: by 2002:a05:6402:100e:: with SMTP id c14mr22590648edu.51.1625579254002; Tue, 06 Jul 2021 06:47:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXX0V6NyZLkesT4JsBq/0laHKl+IOkz9sbNFzot2uERrrxaV2JlFVgf9Huw20vMU9mmk7FAQ== X-Received: by 2002:a05:6402:100e:: with SMTP id c14mr22590627edu.51.1625579253872; Tue, 06 Jul 2021 06:47:33 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id cz9sm3256609edb.76.2021.07.06.06.47.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jul 2021 06:47:33 -0700 (PDT) Subject: Re: [RFC PATCH v2 18/69] KVM: Export kvm_make_all_cpus_request() for use in marking VMs as bugged To: isaku.yamahata@intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , Sean Christopherson , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: isaku.yamahata@gmail.com, Sean Christopherson References: <1d8cbbc8065d831343e70b5dcaea92268145eef1.1625186503.git.isaku.yamahata@intel.com> From: Paolo Bonzini Message-ID: Date: Tue, 6 Jul 2021 15:47:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1d8cbbc8065d831343e70b5dcaea92268145eef1.1625186503.git.isaku.yamahata@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/07/21 00:04, isaku.yamahata@intel.com wrote: > From: Sean Christopherson > > Export kvm_make_all_cpus_request() and hoist the request helper > declarations of request up to the KVM_REQ_* definitions in preparation > for adding a "VM bugged" framework. The framework will add KVM_BUG() > and KVM_BUG_ON() as alternatives to full BUG()/BUG_ON() for cases where > KVM has definitely hit a bug (in itself or in silicon) and the VM is all > but guaranteed to be hosed. Marking a VM bugged will trigger a request > to all vCPUs to allow arch code to forcefully evict each vCPU from its > run loop. > > Signed-off-by: Sean Christopherson > Signed-off-by: Isaku Yamahata This should be _before_ patch 17, not after. Paolo