From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utcb0-0007Il-10 for qemu-devel@nongnu.org; Mon, 01 Jul 2013 07:48:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Utcaz-0008AJ-3n for qemu-devel@nongnu.org; Mon, 01 Jul 2013 07:48:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utcay-0008AF-RN for qemu-devel@nongnu.org; Mon, 01 Jul 2013 07:48:37 -0400 Message-ID: <51D16C91.4060501@redhat.com> Date: Mon, 01 Jul 2013 13:48:33 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1372444009-11544-1-git-send-email-pbonzini@redhat.com> <1372444009-11544-31-git-send-email-pbonzini@redhat.com> <51CDE648.2050000@web.de> In-Reply-To: <51CDE648.2050000@web.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 30/30] exec: put address space dispatch under RCU critical section List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel@nongnu.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Il 28/06/2013 21:38, Jan Kiszka ha scritto: > At this point, do we still have unowned memory regions? Yes, for stuff that is registered by the boards or by non-qdevified devices. In either case, they cannot disappear so it's fine that you call address_space_translate outside the BQL---even if they lack an owner. Paolo > If so, we must not return them here if the caller is not holding > the BQL (which is supposed to protect their > registration/modification/deregistration). > > I played with a version today that returns NULL in this case. Then > the caller of address_space_translate can take the BQL and retry > the translation. > > Jan > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJR0WyRAAoJEBvWZb6bTYbyJioP/jj39ehtAAjJA0I3heu6oCwW fGezYd20NnFQg7kWzNceJM52RT7pIqX/z1a1YRYWHz+izk6ZyfJ36EM0OOa4QSJK yz03mpcSh52XS+kDPzlMYs6OpKRcIPCcR3WU8CP3/ic1lU/74VlXT5jIme0omIk7 3IWBviwrsV69Fz++2kKOTmmPjT63gudKOuZbCrvHnIkwatg3U6wQVDkOn/rFnVCC S+LjVJpdBDO9m4y4kwGtSsboepO+Yhv31Q2HihLFOFUG9qwBkeqASIQl/kYxjIGl J17gS37waujKLBNdUEYvzTf9km/XUppc8Bdp1IjPQo6bLJeB6UFFTTkmjdH2qmLn Qy6eO7LrS1ag7NCaJqY1tZQFyp+fkRf5TTAlf6to7N/4pmb3jFIOueLohQGDeL8b m6yJmmViaAGRdX1dcpzu7kYlwHpQkAccK/Bg6LnvP9iF3DC/vulVupiDl6BIwuDF qYzOuQyIqQdp2m2Xf8x5+VJgwLSjHV8I7PxKwFD3q6pIhqRrmKuwc9TgWHQwVBWA 04X/PclkMXfAo82Pcuncztibk+Ft9X7U2svSy2OLsZC9c1qY+BUwpNPKRIBbOdM4 2mZsJCMqDvLZwf6GHKAt4NqY0dyRycHENIqPYcfO+CK2FGsodf4/xQ27/g/5l1Zu +oflF+G6n8yKtEz0Qz2q =S4/P -----END PGP SIGNATURE-----