xen: move TLB-flush filtering out into populate_physmap during vm creation
Thank you all very much for the feedback. I will address them in the next version.
Quoted 7 lines
Quoted 4 lines
Did you go through and check that there is nothing this information can already get derived from? I can't immediately point you at anything, but it feels like there should.
Indeed. And if there isn't and we need to do add our own flagging, isn't there a better way and place where to put it (e.g., what Juergen and Andrew are hinting at)?
I prefer that to derive whether guest boot finishes is neither limited to a specific domain type (pv, hvm, pvhvm or pvh) nor a specific arch (i386, x86_64, arm32, arm64 or more in the future). Ideally, I would have one or a combo of fields belong to "struct domain" but there isn't.
Can we use the field in vcpu[0]? How about domain->vcpu[0]->last_run_time? The only line of code updating the field is in function "schedule":
1411 prev->last_run_time = now;
I am afraid if there would be any existing (I did not find one) or future interfaces that can reset the entire vcpu[0] to 0.
Dongli Zhang
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines · On 09.09.16 at 07:37, <[email protected]> wrote:
Did you go through and check that there is nothing this information can already get derived from? I can't immediately point you at anything, but it feels like there should.
Indeed. And if there isn't and we need to do add our own flagging, isn't there a better way and place where to put it (e.g., what Juergen and Andrew are hinting at)?
Quoted 5 lines
I prefer that to derive whether guest boot finishes is neither limited to a specific domain type (pv, hvm, pvhvm or pvh) nor a specific arch (i386,
x86_64,
arm32, arm64 or more in the future). Ideally, I would have one or a combo of fields belong to "struct domain" but there isn't.
Of course.
Quoted 1 line
Can we use the field in vcpu[0]?
I don't think so: What if another vCPU was scheduled to run first?
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 13 lines · Jan Beulich
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · On 09.09.16 at 07:37, <[email protected]> wrote:
Did you go through and check that there is nothing this information can already get derived from? I can't immediately point you at anything, but it feels like there should.
Quoted 8 lines
Quoted 3 lines
Indeed. And if there isn't and we need to do add our own flagging, isn't there a better way and place where to put it (e.g., what Juergen and Andrew are hinting at)?
I prefer that to derive whether guest boot finishes is neither limited to a specific domain type (pv, hvm, pvhvm or pvh) nor a specific arch (i386,
x86_64,
arm32, arm64 or more in the future). Ideally, I would have one or a combo of fields belong to "struct domain" but there isn't.
Quoted 4 lines
Of course.
Quoted 1 line
Can we use the field in vcpu[0]?
I don't think so: What if another vCPU was scheduled to run first?
Use the XEN_DOMCTL_unpausedomain hypercall. It must be called by toolstacks on all architectures to complete domain construction.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 09.09.16 at 11:34, <[email protected]> wrote:
Quoted 13 lines · Jan Beulich
Quoted 13 lines
Quoted 8 lines
Quoted 5 lines · On 09.09.16 at 07:37, <[email protected]> wrote:
Did you go through and check that there is nothing this information can already get derived from? I can't immediately point you at anything, but it feels like there should.
Indeed. And if there isn't and we need to do add our own flagging, isn't there a better way and place where to put it (e.g., what Juergen and Andrew are hinting at)?
I prefer that to derive whether guest boot finishes is neither limited to a specific domain type (pv, hvm, pvhvm or pvh) nor a specific arch (i386,
x86_64,
arm32, arm64 or more in the future). Ideally, I would have one or a combo of fields belong to "struct domain" but there isn't.
Quoted 7 lines
Quoted 4 lines
Of course.
Quoted 1 line
Can we use the field in vcpu[0]?
I don't think so: What if another vCPU was scheduled to run first?
Use the
XEN_DOMCTL_unpausedomainhypercall. It must be called by toolstacks on all architectures to complete domain construction.
I think we had settled on this one already. The question now being discussed is whether a new field in the domain structure is needed, or whether the information he's after can be derived from already existing fields.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 17 lines · Jan Beulich
Quoted 17 lines
Quoted 1 line
Quoted 1 line · On 09.09.16 at 11:34, <[email protected]> wrote:
Quoted 15 lines · Jan Beulich
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · On 09.09.16 at 07:37, <[email protected]> wrote:
Did you go through and check that there is nothing this information can already get derived from? I can't immediately point you at anything, but it feels like there should.
Quoted 8 lines
Quoted 3 lines
Indeed. And if there isn't and we need to do add our own flagging, isn't there a better way and place where to put it (e.g., what Juergen and Andrew are hinting at)?
I prefer that to derive whether guest boot finishes is neither limited to a specific domain type (pv, hvm, pvhvm or pvh) nor a specific arch (i386,
x86_64,
arm32, arm64 or more in the future). Ideally, I would have one or a combo of fields belong to "struct domain" but there isn't.Of course.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
Can we use the field in vcpu[0]?
I don't think so: What if another vCPU was scheduled to run first?
Use the
XEN_DOMCTL_unpausedomainhypercall. It must be called by toolstacks on all architectures to complete domain construction.I think we had settled on this one already. The question now being discussed is whether a new field in the domain structure is needed, or whether the information he's after can be derived from already existing fields.
If the information were derivable from other means, there would be no need to alter XEN_DOMCTL_unpausedomain in the first place.
I can't think of any option other than to add something new.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel