From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 6/9] Implement hsave Date: Mon, 01 Sep 2008 17:26:01 +0300 Message-ID: <48BBFB79.6040207@qumranet.com> References: <1220270281-15720-1-git-send-email-agraf@suse.de> <1220270281-15720-2-git-send-email-agraf@suse.de> <1220270281-15720-3-git-send-email-agraf@suse.de> <1220270281-15720-4-git-send-email-agraf@suse.de> <1220270281-15720-5-git-send-email-agraf@suse.de> <1220270281-15720-6-git-send-email-agraf@suse.de> <1220270281-15720-7-git-send-email-agraf@suse.de> <48BBEAF9.1070602@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, joro@8bytes.org, anthony@codemonkey.ws To: Alexander Graf Return-path: Received: from il.qumranet.com ([212.179.150.194]:35562 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbYIAO0C (ORCPT ); Mon, 1 Sep 2008 10:26:02 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Alexander Graf wrote: > > On Sep 1, 2008, at 3:15 PM, Avi Kivity wrote: > >> Alexander Graf wrote: >>> Implement the hsave MSR, that gives the VCPU a GPA to save the >>> old guest state in. >>> >> >> There's a list of msrs exported to userspace somewhere; adding this >> will automatically add save/restore/migrate support for hsave. > > Sounds great, but how do I access that value from kernel space then? > Same as before. It's just a list of msr numbers which userspace knows it can load/save. See msrs_to_save in x86.c. -- error compiling committee.c: too many arguments to function