From: Alexander Graf Subject: Re: [PATCH 3/9] Implement GIF, clgi and stgi Date: Mon, 1 Sep 2008 18:40:39 +0200 Message-ID: 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> <48BBEA06.8090206@qumranet.com> <48BBFB41.8090004@qumranet.com> <7318388C-B414-424F-9A3E-5A9433D2A192@suse.de> <48BC12DB.5020204@qumranet.com> <9444E915-41DE-4266-B810-3E5EE370D1D5@suse.de> <48BC1584.4020404@qumranet.com> Mime-Version: 1.0 (iPhone Mail 5A347) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Cc: KVM list , Joerg Roedel , Anthony Liguori To: Avi Kivity Return-path: Received: from mail.suse.de ([195.135.220.2]:44898 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752579AbYIAQko (ORCPT ); Mon, 1 Sep 2008 12:40:44 -0400 In-Reply-To: <48BC1584.4020404@qumranet.com> Sender: kvm-owner@vger.kernel.org List-ID: Am 01.09.2008 um 18:17 schrieb Avi Kivity : > Alexander Graf wrote: >>> >>> We can't change struct kvm_sregs, since the structure size is >>> encoded in the ioctl number. We need a new struct and new >>> ioctls. The same was done for mpstate, for example. >> >> Urks - doesn't sounds fast to me. >> > > It's only for save/restore, not in any fast path. Ah, so we don't sync hflags with the userspace on every transition but only request it on save/restore? Sounds good. > > >>> >>> >>> There's more info needed, btw. Whether the guest is in guest mode >>> or host mode; what the current vmcs is; the value of eflags.if at >>> the time vmrun was executed; and probably more. >> >> Do we really want to support storing the state when within the >> Level2 VM? Can't we just #VMEXIT as soon as we switch to userspace >> or so? That would probably simplify things a lot. >> > > Great idea. What do we give as the exit reason? I thought of INTR here. That should be a nop in every VMM. Even if not, worst case it would end in an hlt that still fires on the next timer. Alex > > > -- > error compiling committee.c: too many arguments to function >