Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755994AbbESNcs (ORCPT ); Tue, 19 May 2015 09:32:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53946 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752195AbbESNcp (ORCPT ); Tue, 19 May 2015 09:32:45 -0400 Date: Tue, 19 May 2015 15:32:41 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Paolo Bonzini 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 Message-ID: <20150519133240.GA32489@potion.brq.redhat.com> References: <1431956923-35602-1-git-send-email-pbonzini@redhat.com> <1431956923-35602-9-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431956923-35602-9-git-send-email-pbonzini@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1534 Lines: 30 2015-05-18 15:48+0200, Paolo Bonzini: > +If KVM_CAP_MULTI_ADDRESS_SPACE is available, bits 16-31 of "slot" > +specifies the address space which is being modified. They must be > +less than the value that KVM_CHECK_EXTENSION returns for the > +KVM_CAP_MULTI_ADDRESS_SPACE capability. > + Slots in separate address spaces > +are unrelated; I'd prefer to decouple address spaces and slots. KVM_GET_DIRTY_LOG could stay the same if we said that a slot can be in multiple address spaces. (Well, we could do that even now, by searching for slots that differ only in address space id and pointing them to same dirty bitmap. This even makes sense, which is a sign of lacking design :) The main drawback is that forcing decoupling on existing IOCTLs would be really awkward ... we'd need to have new API for address spaces; there are two basic operations on an address space: add and remove slot (needs: slot id, address space id) which would give roughly the same functionality as this patch. (To maximixe compatibility, there could be a default address space and a slot flag that doesn't automatically add it there.) On top of this, we could allow hierarchical address spaces, so very similar address spaces (like SMM) would be easier to set up. -- 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/