public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Arch cleanup v5
@ 2007-07-27 12:13 Gregory Haskins
       [not found] ` <20070727121250.9876.36599.stgit-sLgBBP33vUGnsjUZhwzVf9HuzzzSOjJt@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Gregory Haskins @ 2007-07-27 12:13 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

(Note the last "v3" I sent out was a duplicate v3...it should have been v4)

This series includes the following changes from v4(v3)

Patch #1: I have folded Rusty's cleanup in (thanks Rusty!)
Patch #2: Rebased on Rusty's changes
Patch #3: Dropped

Signed-off-by: Gregory Haskins <ghaskins-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] KVM: Clean up VMCLEAR/VMPTRLD code on VMX
@ 2007-07-28  1:22 Gregory Haskins
  0 siblings, 0 replies; 7+ messages in thread
From: Gregory Haskins @ 2007-07-28  1:22 UTC (permalink / raw)
  To: jun.nakajima-ral2JQCrhuEAvxtiuMwx3w
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Fri, 2007-07-27 at 17:09 -0700, Nakajima, Jun wrote:
> Gregory Haskins wrote:
> > Signed-off-by: Gregory Haskins <ghaskins-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>
> > ---
> > 
> >  drivers/kvm/vmx.c |   71
> >  +++++++++++++++++++++++++++++++++++++++++++---------- 1 files
> changed, 58
> > insertions(+), 13 deletions(-) 
> > 
> > diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
> > index 96837d6..86f1eea 100644
> > --- a/drivers/kvm/vmx.c
> > +++ b/drivers/kvm/vmx.c
> > @@ -191,6 +191,20 @@ static struct kvm_msr_entry
> *find_msr_entry(struct
> >  	kvm_vcpu *vcpu, u32 msr) return NULL;
> >  }
> > 
> > +static void vmcs_load(struct vmcs *vmcs)
> > +{
> > +	u64 phys_addr = __pa(vmcs);
> > +	u8 error;
> > +
> > +	asm volatile (ASM_VMX_VMPTRLD_RAX "; setna %0"
> > +		      : "=g"(error) : "a"(&phys_addr), "m"(phys_addr)
> > +		      : "cc");
> > +
> > +	if (error)
> > +		printk(KERN_ERR "kvm: vmptrld %p/%llx fail\n",
> > +		       vmcs, phys_addr);
> > +}
> 
> I don't believe this instruction fails under normal conditions, but we
> should terminate the guest cleanly in such cases, rather than just doing
> printk().

Note that this was just a verbatim move of existing code.  I don't
disagree with your assessment...its just that its not the right place
for a change like that.  If you want to submit a further patch, that
would certainly be appreciated.

> 
> Jun
> ---
> Intel Open Source Technology Center


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-29  7:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 12:13 [PATCH 0/2] Arch cleanup v5 Gregory Haskins
     [not found] ` <20070727121250.9876.36599.stgit-sLgBBP33vUGnsjUZhwzVf9HuzzzSOjJt@public.gmane.org>
2007-07-27 12:13   ` [PATCH 1/2] KVM: Remove arch specific components from the general code Gregory Haskins
     [not found]     ` <20070727121309.9876.76020.stgit-sLgBBP33vUGnsjUZhwzVf9HuzzzSOjJt@public.gmane.org>
2007-07-29  7:48       ` Avi Kivity
2007-07-27 12:13   ` [PATCH 2/2] KVM: Clean up VMCLEAR/VMPTRLD code on VMX Gregory Haskins
     [not found]     ` <20070727121315.9876.96646.stgit-sLgBBP33vUGnsjUZhwzVf9HuzzzSOjJt@public.gmane.org>
2007-07-28  0:09       ` Nakajima, Jun
2007-07-29  7:50       ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2007-07-28  1:22 Gregory Haskins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox