From: Keir Fraser Subject: Re: Hypercall-page initialization Date: Tue, 7 Feb 2006 18:21:00 +0000 Message-ID: References: <919bb30a9d2ec4dfa5f8bbfbb7371219@cl.cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 7 Feb 2006, at 18:04, Jacob Gorm Hansen wrote: >> Or if you want to fill it in from within the domU, how about if we did >> something like reserve some space of MSRs for Xen use (e.g., hex >> Bxxxxxxx). Then we could say that, if the guest writes an MFN to a >> particular one of those MSRs, it gets filled with hypercall-page >> goodness. :-) > > Hmm would that work in paravirt mode also? I guess Xen would trap the > exception and do the right thing? I suppose this has the advantage of > avoiding any hardcoded trap vectors. Yes, although it does sound kinda gross, it will work and ultimately I think it sounds quite attractive compared with the alternatives. Not sure how to decide what MSR range to pick to reserve... Apart from that it's trivial to implement. -- Keir