From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:59994 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964875AbdCXOlB (ORCPT ); Fri, 24 Mar 2017 10:41:01 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2OEdAvQ046616 for ; Fri, 24 Mar 2017 10:40:59 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 29cjhttrpd-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 24 Mar 2017 10:40:59 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 24 Mar 2017 14:40:57 -0000 Date: Fri, 24 Mar 2017 15:40:51 +0100 From: Cornelia Huck To: Marcelo Tosatti Cc: Dmitry Vyukov , David Hildenbrand , KVM list , Paolo Bonzini , Radim =?UTF-8?B?S3LEjW3DocWZ?= , stable , LKML Subject: Re: [PATCH v2] KVM: kvm_io_bus_unregister_dev() should never fail In-Reply-To: <20170324103257.GA5250@amt.cnet> References: <20170323172419.21435-1-david@redhat.com> <20170323204247.GC27861@amt.cnet> <20170324103257.GA5250@amt.cnet> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20170324154051.5398a703.cornelia.huck@de.ibm.com> Sender: stable-owner@vger.kernel.org List-ID: On Fri, 24 Mar 2017 07:33:01 -0300 Marcelo Tosatti wrote: > Still dislike the "unregister all bus devices" as that renders the guest > unuseable. Can't you fail gracefully? Say force qemu error. The callers are probably too varied to find a common way to do that (multiply with different user space tools). At least for some cases, the guest will be terminated in the near future anyway: For example, on s390 a NULL bus will cause an error to be propagated through KVM_RUN on the next guest->host virtio notification, which will cause qemu to terminate the guest. This situation is not ideal, but this is probably the most reasonable approach.