Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4722398pxv; Tue, 6 Jul 2021 07:41:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAic2hlr/tnqz+Fbu82brE8K2W1pyFQ5SRF2ZtZG9QXmjvuxyXiP+IHCILV0fSykf/Pelq X-Received: by 2002:a50:8fc3:: with SMTP id y61mr22907138edy.107.1625582472885; Tue, 06 Jul 2021 07:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625582472; cv=none; d=google.com; s=arc-20160816; b=Uq7HT3lUS5hV2HVe3Gp3L4d5nG0+xzxOnl4cfkgO7suFQR2KXNbd7gOFbI2bxVQKFN 6ZiKtVB4VzuWIVEhl6vacGViUIyxBVj/qH29ggEnbe8shVhfFAAvboEXmJdkOMWeygpU irERCRFIGgofO7uPNHKQTP6yFVEyWkCbqDPH6pQ/rjmE34USv0dEJZwRmqLzIc4+EtaY 8BJuaTrZ31c94KlUq+ISPcWlpMovxjVjS9Las6SLKgSxRT3YImics7/B4w+7KKiJB0ky cA9Tc3lsfEeeh9IV8iteaZworeAn/nbjhhJnWM7ynEe3PfSqWBmj8+SyoNShIn7A2kPa fXVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=CQBCB+bMahID1ZaCZKHNYR0DExf7wMJRe389TSgL0HE=; b=lXTcVDFEcwoFAoyhINHcjhlOo5Cq3i9gOLBCgEYrdqzKg3Z/YST+6PsCIknA4YT2sm snAt/YifTCYdLhbyi/qE2mNQaW7sfU0QcIjMj/MuaGL682fMN2eZoWDkQWvAbHS06IWI kRG83feeo13haePKvUgKp8yZWvM47ZoVs/FndztolufdquUPquBlZZVOpkILnjps7i+M cAKXUCIQF1ok2T3qkzFWFUmp/C5BMjndid74nN9nRIiGHgVKFNmV1t7pwhkAxsGkQkZQ xCJCV7/in2rRtPEVbeFVONqfwfoOzoddFny++RDlfKBADO3U1Mi/m8PVLcWRnHdYELY9 Lq2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YXf9IgeC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si15173851ejz.183.2021.07.06.07.40.50; Tue, 06 Jul 2021 07:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YXf9IgeC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232301AbhGFOka (ORCPT + 99 others); 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-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