hvm_init_ap_contexts
Why is there an argument returned in the function below (of hvm.h), knowing that there is void?
static inline void
hvm_init_ap_context(struct vcpu_guest_context *ctxt,
int vcpuid, int trampoline_vector)
{
return hvm_funcs.init_ap_context(ctxt, vcpuid, trampoline_vector);
}
Quoted 13 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of PUCCETTI Armand
Sent: 01 March 2007 16:43
To: [email protected]
Subject: [Xen-devel]hvm_init_ap_contextsWhy is there an argument returned in the function below (of
hvm.h), knowing that there is void?
Quoted 6 lines
static inline void
hvm_init_ap_context(structvcpu_guest_context*ctxt,
int vcpuid, inttrampoline_vector){ return hvm_funcs.init_ap_context(ctxt, vcpuid, trampoline_vector); }
Seems broken (or rather "unnecessar and confusing" to me - fancy submitting a fix?
Quoted 1 line
From what I can tell, this has been "broken" for quite some time, and as
of about 2000 changesets, the return-type of that function hasn't changed.
--
Mats
Quoted 8 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
The return keyword is pointless here, but allowed.
-- Keir
Quoted 9 lines · PUCCETTI Armand
Why is there an argument returned in the function below (of
hvm.h), knowing that there is void?static inline void
hvm_init_ap_context(structvcpu_guest_context*ctxt,
int vcpuid, inttrampoline_vector){ return hvm_funcs.init_ap_context(ctxt, vcpuid, trampoline_vector); }
Quoted 11 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: 01 March 2007 17:00
To: PUCCETTI Armand; [email protected]
Subject: Re: [Xen-devel]hvm_init_ap_contextsThe return keyword is pointless here, but allowed.
Agreed - but removing the return keyword would make sure that someone looking at the code doesn't try to figure out what is being returned by the original function - and since there's nothing being returned, not using a return keyword makes the code "clearer".
My personal opinion, of course.
--
Mats
Quoted 24 lines
-- Keir
Quoted 8 lines · PUCCETTI Armand
Why is there an argument returned in the function below (of
hvm.h), knowing that there is void?static inline void
hvm_init_ap_context(structvcpu_guest_context*ctxt,
int vcpuid, inttrampoline_vector)
{
return hvm_funcs.init_ap_context(ctxt, vcpuid,
trampoline_vector);Quoted 1 line
}
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
question about the poll_timer
In reply to PUCCETTI Armandhi
I try to understand the scheduler part code of xen,and I am confused about the poll_timer could you help me by telling me about the meaning and function of poll_timer
struct vcpu {
....
struct timer poll_timer; /* timeout for SCHEDOP_poll */
....
}
Thanks in advance
Re: question about the poll_timer
Hi,
Have you ever seen the do_pci_op() oflinux-2.6-sparse/drivers/xen/pcifront/pci_op.c?
Thanks
Atsushi SAKAI
Quoted 18 lines · tgh
hi
I try to understand the scheduler part code of xen,and I am confused
about thepoll_timer
could you help me by telling me about the meaning and function ofpoll_timerstruct vcpu {
....
struct timerpoll_timer; /* timeout forSCHEDOP_poll*/
....
}Thanks in advance
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: question about the poll_timer
Thank you for your reply
I read to the function do_pci_op() you told me,but I am not familiar with the pci facility I guess the poll_timer gives a interval for pci probing before time out or something could you tell me more about pci and poll_timer
Thank you in advance
Quoted 41 lines · Atsushi SAKAI
Hi,
Have you ever seen the
do_pci_op()oflinux-2.6-sparse/drivers/xen/pcifront/pci_op.c?Thanks
Atsushi SAKAIQuoted 12 lines · tgh
hi
I try to understand the scheduler part code of xen,and I am confused
about thepoll_timer
could you help me by telling me about the meaning and function ofpoll_timerstruct vcpu {
....
struct timerpoll_timer; /* timeout forSCHEDOP_poll*/
....
}Quoted 7 lines
Thanks in advance
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: question about the poll_timer
Quoted 10 lines
Thank you for your reply
I read to the functiondo_pci_op()you told me,but I am not familiar with the pci facility
I guess thepoll_timergives a interval for pci probing before time out or something
could you tell me more about pci andpoll_timerThank you in advance
Atsushi SAKAI 写道:
ISTR that the poll_timer is used to "Don't schedule me until an event comes in, or if the event hasn't arrived within this timeout"
It's a bit like the poll() system call in this respect.
HTH,
Cheers,
Mark
Quoted 37 lines
Quoted 28 lines
Have you ever seen the
do_pci_op()oflinux-2.6-sparse/drivers/xen/pcifront/pci_op.c?Thanks
Atsushi SAKAIQuoted 13 lines · tgh
hi
I try to understand the scheduler part code of xen,and I am confused
about thepoll_timer
could you help me by telling me about the meaning and function ofpoll_timerstruct vcpu {
....
struct timerpoll_timer; /* timeout forSCHEDOP_poll*/
....
}Quoted 6 lines
Thanks in advance
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!