From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Mammedov Subject: Re: should KVM or userspace be the one which decides what MIPIDR/affinity values to assign to vcpus? Date: Wed, 10 Jun 2015 11:54:20 +0200 Message-ID: <20150610115420.4319da55@nial.brq.redhat.com> References: <5576C559.2000902@arm.com> <5576DBB5.3010100@arm.com> <5576F177.3090903@arm.com> <5576F9A9.6010501@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id DF0BC540BD for ; Wed, 10 Jun 2015 05:44:08 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sSsKrNIHs3bB for ; Wed, 10 Jun 2015 05:44:07 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id EC361540BA for ; Wed, 10 Jun 2015 05:44:06 -0400 (EDT) In-Reply-To: <5576F9A9.6010501@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Marc Zyngier Cc: Shlomo Pongratz , Shlomo Pongratz , Pavel Fedin , QEMU Developers , Shannon Zhao , Ashok Kumar , "kvmarm@lists.cs.columbia.edu" List-Id: kvmarm@lists.cs.columbia.edu On Tue, 09 Jun 2015 15:35:21 +0100 Marc Zyngier wrote: > On 09/06/15 15:01, Peter Maydell wrote: > > On 9 June 2015 at 15:00, Marc Zyngier wrote: > >> > >> Yeah, what I had in mind was something along the lines of: > >> - kernel computes its "default MPDIR" > >> - kernel exposes a new capability "KVM_ARM_ALLOW_MPIDR_OVERRIDE" (or > >> something along those lines) > >> - userspace does the right thing. > > > > You forgot the "???" step :-) > > Indeed. I also missed the step that says "kernel is able to convert > arbitrary MPIDR to vcpu_id in an efficient manner...". GICv3 is > definitely going to require this. x86 probably already has code that does this for APIC ID -> vcpu_id