Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754893AbbETSRi (ORCPT ); Wed, 20 May 2015 14:17:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43976 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753943AbbETSRf (ORCPT ); Wed, 20 May 2015 14:17:35 -0400 Message-ID: <555CCFB9.8090300@redhat.com> Date: Wed, 20 May 2015 20:17:29 +0200 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= CC: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Xiao Guangrong , bdas@redhat.com Subject: Re: [PATCH 08/11] KVM: implement multiple address spaces References: <1431956923-35602-1-git-send-email-pbonzini@redhat.com> <1431956923-35602-9-git-send-email-pbonzini@redhat.com> <20150519133240.GA32489@potion.brq.redhat.com> <555B6291.1070102@redhat.com> <20150519182810.GA29273@potion.brq.redhat.com> <555C32AD.4040704@redhat.com> <20150520154601.GA2176@potion.brq.redhat.com> In-Reply-To: <20150520154601.GA2176@potion.brq.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1156 Lines: 30 On 20/05/2015 17:46, Radim Krčmář wrote: > I am a bit worried about the explosion that would happen if we wanted, > for example, per-VCPU address spaces Those would be very expensive. If we were to implement relocatable APIC base, we would have to do it in a different way than with memslots. > My main issue (orthogonal to layering) is that we don't allow a way to > let userspace tell us that some slots in different name spaces are the > same slot. We're losing information that could be useful in the future > (I can only think of less slot queries for dirty log now). You're right. On the other hand, I think the ship has sailed the moment the dirty log was GPA-indexed. > What I like about your solution is that it fits existing code really > well, is easily modified if needs change, and that it already exists. Yes, it does fit existing code really well. Thanks for the discussion! Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/