* Re: [kvm-commits] kvm: add host hypercall support for vmx (rev 4374) [not found] ` <20070201122904.77002A0014-LjA0eNSCdXrQnzwC+xcbyw@public.gmane.org> @ 2007-02-01 13:01 ` Muli Ben-Yehuda [not found] ` <20070201130116.GA1100-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Muli Ben-Yehuda @ 2007-02-01 13:01 UTC (permalink / raw) To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Hi Avi, You might want to consider setting the reply-to on kvm-commits to kvm-devel. On Thu, Feb 01, 2007 at 02:29:04PM +0200, Avi Kivity wrote: > Modified: kvm/trunk/kernel/vmx.c > ============================================================================== > --- kvm/trunk/kernel/vmx.c (original) > +++ kvm/trunk/kernel/vmx.c Thu Feb 1 14:29:04 2007 > @@ -1654,6 +1654,19 @@ static int handle_halt(struct kvm_vcpu * > return 0; > } > > +static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) > +{ > + kvm_run->exit_reason = KVM_EXIT_DEBUG; > + printk(KERN_DEBUG "got vmcall at RIP %08lx\n", vmcs_readl(GUEST_RIP)); > + printk(KERN_DEBUG "vmcall params: %08lx, %08lx, %08lx, %08lx\n", > + vcpu->regs[VCPU_REGS_RAX], > + vcpu->regs[VCPU_REGS_RCX], > + vcpu->regs[VCPU_REGS_RDX], > + vcpu->regs[VCPU_REGS_RBP]); > + vcpu->regs[VCPU_REGS_RAX] = 0; > + vmcs_writel(GUEST_RIP, vmcs_readl(GUEST_RIP)+3); > + return 1; I noticed that the svm 'vmcall_interception' doesn't set kvm_run->exit_reason - is the setting here superflous or needed? and if it's needed, is it also needed in svm? Cheers, Muli ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20070201130116.GA1100-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>]
* Re: [kvm-commits] kvm: add host hypercall support for vmx (rev 4374) [not found] ` <20070201130116.GA1100-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org> @ 2007-02-01 13:08 ` Avi Kivity [not found] ` <45C1E641.9060203-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Avi Kivity @ 2007-02-01 13:08 UTC (permalink / raw) To: Muli Ben-Yehuda; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Muli Ben-Yehuda wrote: > Hi Avi, > > You might want to consider setting the reply-to on kvm-commits to > kvm-devel. > > At qumranet we're used to reply-to-committer, so... > On Thu, Feb 01, 2007 at 02:29:04PM +0200, Avi Kivity wrote: > > >> Modified: kvm/trunk/kernel/vmx.c >> ============================================================================== >> --- kvm/trunk/kernel/vmx.c (original) >> +++ kvm/trunk/kernel/vmx.c Thu Feb 1 14:29:04 2007 >> @@ -1654,6 +1654,19 @@ static int handle_halt(struct kvm_vcpu * >> return 0; >> } >> >> +static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) >> +{ >> + kvm_run->exit_reason = KVM_EXIT_DEBUG; >> + printk(KERN_DEBUG "got vmcall at RIP %08lx\n", vmcs_readl(GUEST_RIP)); >> + printk(KERN_DEBUG "vmcall params: %08lx, %08lx, %08lx, %08lx\n", >> + vcpu->regs[VCPU_REGS_RAX], >> + vcpu->regs[VCPU_REGS_RCX], >> + vcpu->regs[VCPU_REGS_RDX], >> + vcpu->regs[VCPU_REGS_RBP]); >> + vcpu->regs[VCPU_REGS_RAX] = 0; >> + vmcs_writel(GUEST_RIP, vmcs_readl(GUEST_RIP)+3); >> + return 1; >> > > I noticed that the svm 'vmcall_interception' doesn't set > kvm_run->exit_reason - is the setting here superflous or needed? and > if it's needed, is it also needed in svm? > A 'return 1' means there won't be an exit to userspace, so kvm_run won't be used at all. So the assignment here is superfluous - probably a debug artifact. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <45C1E641.9060203-atKUWr5tajBWk0Htik3J/w@public.gmane.org>]
* Re: [kvm-commits] kvm: add host hypercall support for vmx (rev 4374) [not found] ` <45C1E641.9060203-atKUWr5tajBWk0Htik3J/w@public.gmane.org> @ 2007-02-01 14:04 ` Muli Ben-Yehuda [not found] ` <20070201140457.GA15992-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Muli Ben-Yehuda @ 2007-02-01 14:04 UTC (permalink / raw) To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Thu, Feb 01, 2007 at 03:08:17PM +0200, Avi Kivity wrote: > >I noticed that the svm 'vmcall_interception' doesn't set > >kvm_run->exit_reason - is the setting here superflous or needed? and > >if it's needed, is it also needed in svm? > > > > A 'return 1' means there won't be an exit to userspace, so kvm_run > won't be used at all. So the assignment here is superfluous - > probably a debug artifact. Thanks for the explanation. I notice it's already gone in the trunk so no cleanup patch :_) Cheers, Muli ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20070201140457.GA15992-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>]
* Re: [kvm-commits] kvm: add host hypercall support for vmx (rev 4374) [not found] ` <20070201140457.GA15992-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org> @ 2007-02-01 14:07 ` Avi Kivity 0 siblings, 0 replies; 4+ messages in thread From: Avi Kivity @ 2007-02-01 14:07 UTC (permalink / raw) To: Muli Ben-Yehuda; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Muli Ben-Yehuda wrote: > Thanks for the explanation. I notice it's already gone in the trunk so > no cleanup patch :_) > > kvm trunk is a dangerous place :) -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-02-01 14:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070201122904.77002A0014@il.qumranet.com>
[not found] ` <20070201122904.77002A0014-LjA0eNSCdXrQnzwC+xcbyw@public.gmane.org>
2007-02-01 13:01 ` [kvm-commits] kvm: add host hypercall support for vmx (rev 4374) Muli Ben-Yehuda
[not found] ` <20070201130116.GA1100-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
2007-02-01 13:08 ` Avi Kivity
[not found] ` <45C1E641.9060203-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-01 14:04 ` Muli Ben-Yehuda
[not found] ` <20070201140457.GA15992-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
2007-02-01 14:07 ` Avi Kivity
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox