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=-12.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, 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 26468C433B4 for ; Sat, 17 Apr 2021 13:11:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 010FB611AC for ; Sat, 17 Apr 2021 13:11:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236371AbhDQNLt (ORCPT ); Sat, 17 Apr 2021 09:11:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:35710 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236092AbhDQNLr (ORCPT ); Sat, 17 Apr 2021 09:11:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618665080; 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=ea9ZS/ujqV/UqrWzcxyrISfo7DzpHiETd5sLVIqOMK4=; b=DyMY4KzMtAuSnmscRgUGX4aOi4VFUh4TO8Vn61VS7v97ZiD2FXe7otaR9S5uxS7wXzM9lA k7jFSzXIHoYhWAYyZKQJmwlHX1RxAYMYMdGaX18T5lJIoaqa8k3XwKHDr1fCO9gi3VtJiQ pqSn+kKYGPrnHj2Ag2jInsAYxxiVmbM= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-337-LYBmYIUbPzWm43oHBWJP8A-1; Sat, 17 Apr 2021 09:11:18 -0400 X-MC-Unique: LYBmYIUbPzWm43oHBWJP8A-1 Received: by mail-ed1-f69.google.com with SMTP id o4-20020a0564024384b0290378d45ecf57so8693369edc.12 for ; Sat, 17 Apr 2021 06:11:18 -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=ea9ZS/ujqV/UqrWzcxyrISfo7DzpHiETd5sLVIqOMK4=; b=pwWJJkvaAZ7+f+5oj4Ahaz3x276QiPfAnbJ1PHpohBCGonE6lxgxt2HXTdsVo2PImn mdDkP5Kec/WhN+M1QMxTgaehQNLM0QqC5gGKY88xvncS5qC3sOrnz7XqVfFsvV2LxicF XjlY/ZM46mMRgJyJHcqhAPC2TbyEz9OaCXncgcCzeBv/dTID65S7qMotsxiQxeWyDD01 hEdclzL/IFE8Vkkr+832VOuhh5uxoYnC+0z/VXVwjngx/jDvP69GpPfMXrVTkmP3kUee zue57XN63aVFLWBt0uQKkPeMqcklVOpa+2A6fd33T2SGL5DO4sGOiH7gYDGmD1/B3qOB JBKg== X-Gm-Message-State: AOAM533Gu5gzaiCc6oh8GIqrhcIi/3Tswok2629qfA+i81dCmRn4GXkf UZbWC+e+wTA4CH4BSWdHxwiqa1n8HCj32ZrcOTmtt2QbVR7Oii46t5bAYxxz8BpD1nj/4WUdhua jkKYAbvfn3SqOLlDXtBfDrVte X-Received: by 2002:a17:906:747:: with SMTP id z7mr13373167ejb.192.1618665077194; Sat, 17 Apr 2021 06:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwapFnRNlqIf5QRLiyv3IpVASga4nItuEE7TyxPVXQJNLwTdqMdhPrJlWoHy1tBU1aSwsc7A== X-Received: by 2002:a17:906:747:: with SMTP id z7mr13373148ejb.192.1618665077000; Sat, 17 Apr 2021 06:11:17 -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 kj24sm6375414ejc.49.2021.04.17.06.11.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Apr 2021 06:11:16 -0700 (PDT) Subject: Re: [PATCH 0/3] KVM: Fixes and a cleanup for coalesced MMIO To: Sean Christopherson Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Hao Sun References: <20210412222050.876100-1-seanjc@google.com> From: Paolo Bonzini Message-ID: <159d0b9c-c50b-3829-0212-acb30d6c1ae0@redhat.com> Date: Sat, 17 Apr 2021 15:11:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210412222050.876100-1-seanjc@google.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 13/04/21 00:20, Sean Christopherson wrote: > Fix two bugs that are exposed if unregistered a device on an I/O bus fails > due to OOM. Tack on opportunistic cleanup in the related code. > > Sean Christopherson (3): > KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing > SRCU > KVM: Stop looking for coalesced MMIO zones if the bus is destroyed > KVM: Add proper lockdep assertion in I/O bus unregister > > include/linux/kvm_host.h | 4 ++-- > virt/kvm/coalesced_mmio.c | 19 +++++++++++++++++-- > virt/kvm/kvm_main.c | 26 ++++++++++++++++---------- > 3 files changed, 35 insertions(+), 14 deletions(-) > Queued, thanks. Paolo