Xen ARM Fault recovery for automotive use case
Quoted 10 lines · On 18/03/2019 06:50, [email protected] wrote:
Quoted 1 line
Hello,
Hello,
Quoted 5 lines
I'm researching xen for automotive use case and I see a presentation called:
"Design and Implementation of Automotive Virtualization Based on Xen - Sung-Min Lee, Samsung Electronics"
on Xen Developer and Design Summit 2018.
Quoted 5 lines
Quoted 2 lines
I'm interesting in the modification of fault recovery scenario on P9~P11, it introduced a new hypercall called
XEN_DOMCTL_samsung_reset.If I recall correctly the talk,
XEN_DOMCTL_samsung_resetis doing exactly the same asXEN_DOMCTL_soft_reset. The later is not yet implemented on Arm, I can provide guidelines if you are interested to implement it.
Thank you for your reply!It will be very useful if there is some guide for implement the soft_reset.And are there any plan for official implementation of this function on ARM?
Quoted 5 lines
Where can I find some code or tutorial for this modification? Has the code been released?
Your best bet would be to contact the speaker.
Best regards,
-- > Julien Grall
I check the code in xl, in function libxl_domain_soft_reset there is a check that if (info->type != LIBXL_DOMAIN_TYPE_HVM) return ERROR_INVAL; So the ARM use PVH type can't use this function.Are there any guide or sample code for implementation of this feature?Thank you very much!
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
soft reset support on Arm (Was: Re: 回复:回复:Re: Xen ARM Fault recovery for automotive use case)
(+ Stefano, Wei and Ian)
Hello,
Apologies for the late answer.
First of all, please avoid sending e-mail using HTML encoding. E-mail on mailing should only be plain text.
Quoted 15 lines · On 3/20/19 9:28 AM, [email protected] wrote:
Quoted 6 lines · On 18/03/2019 06:50, [email protected] wrote:
> Hello,
Hello,Quoted 1 line
I'm researching xen for automotive use case and I see a
presentation called:
Quoted 1 line
Quoted 1 line
"Design and Implementation of Automotive Virtualization Based on
Xen - Sung-Min
Quoted 4 lines
Quoted 4 lines
Lee, Samsung Electronics"
on Xen Developer and Design Summit 2018.I'm interesting in the modification of fault recovery scenario on
P9~P11, it
Quoted 1 line
Quoted 1 line
introduced a new hypercall called
XEN_DOMCTL_samsung_reset.
Quoted 8 lines
Quoted 1 line
If I recall correctly the talk,
XEN_DOMCTL_samsung_resetis doingexactly the
Quoted 1 line
same as
XEN_DOMCTL_soft_reset. The later is not yet implemented onArm, I can
Quoted 1 line
provide guidelines if you are interested to implement it.
Thank you for your reply!
It will be very useful if there is some guide for implement thesoft_reset.
(See below).
Quoted 1 line
And are there any plan for official implementation of this function on ARM?
I am not aware of anyone working on the implementation for Arm. I would be happy to review any patch series sent.
Quoted 9 lines
Quoted 2 lines
Where can I find some code or tutorial for this modification? Has the
code been
Quoted 5 lines
released?
Your best bet would be to contact the speaker.
Best regards,
--
Julien Grall
Quoted 4 lines
I check the code in xl, in function libxl_domain_soft_reset there is a check that if (
info->type!=LIBXL_DOMAIN_TYPE_HVM) returnERROR_INVAL;So the ARM use PVH type can't use this function.
AFAICT, this is HVM only because the softreset code relies on the presence of a device-model. PVH guest does not have a device model, the code at the end of the function do_domain_soft_reset would need to be adapted to remove any reference on the device model.
Quoted 1 line
Are there any guide or sample code for implementation of this feature?
I haven't fully though about the soft reset on Arm.
From my understanding, for a first implementation, replacing the domain shared info page with a new page (see the implementation in the x86 version of arch_domain_create) should be sufficient. You should be able to soft_reset your domain afterwards.
For a more robust implementation, I think we need to warn if foreign mappings are still present because they are mapping to another guest. There might be interesting thing happening if they are still present. You would need to go through the P2M and check if there are a foreign mappings in place.
There might be other mappings to take care of (i.e grant-table...) but I didn't have time to look whether it is strictly necessary yet.
I have CCed some person that should be able to give feedback on libxl and complete if I miss anything.
Cheers,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: soft reset support on Arm (Was: Re: 回复:回复:Re: Xen ARM Fault recovery for automotive use case)
Quoted 54 lines · Julien Grall
(+ Stefano, Wei and Ian)
Hello,
Apologies for the late answer.
First of all, please avoid sending e-mail using HTML encoding. E-mail on mailing should only be plain text.
Quoted 15 lines · On 3/20/19 9:28 AM, [email protected] wrote:
Quoted 6 lines · On 18/03/2019 06:50, [email protected] wrote:
> Hello,
Hello,Quoted 1 line
I'm researching xen for automotive use case and I see a
presentation called:
Quoted 1 line
Quoted 1 line
"Design and Implementation of Automotive Virtualization Based on
Xen - Sung-Min
Quoted 4 lines
Quoted 4 lines
Lee, Samsung Electronics"
on Xen Developer and Design Summit 2018.I'm interesting in the modification of fault recovery scenario on
P9~P11, it
Quoted 1 line
Quoted 1 line
introduced a new hypercall called
XEN_DOMCTL_samsung_reset.Quoted 8 lines
Quoted 1 line
If I recall correctly the talk,
XEN_DOMCTL_samsung_resetis doingexactly the
Quoted 1 line
same as
XEN_DOMCTL_soft_reset. The later is not yet implemented onArm, I can
Quoted 1 line
provide guidelines if you are interested to implement it.
Thank you for your reply!
It will be very useful if there is some guide for implement thesoft_reset.(See below).
Quoted 1 line
And are there any plan for official implementation of this function on ARM?
I am not aware of anyone working on the implementation for Arm. I would be happy to review any patch series sent.
Quoted 13 lines
Quoted 2 lines
Where can I find some code or tutorial for this modification? Has the
code been
Quoted 5 lines
released?
Your best bet would be to contact the speaker.
Best regards,
--
Julien GrallI check the code in xl, in function libxl_domain_soft_reset there is a check that
if (info->type!=LIBXL_DOMAIN_TYPE_HVM) returnERROR_INVAL;
Quoted 6 lines
Quoted 1 line
So the ARM use PVH type can't use this function.
AFAICT, this is HVM only because the softreset code relies on the presence of a device-model. PVH guest does not have a device model, the code at the end of the function
do_domain_soft_resetwould need to be adapted to remove any reference on the device model.
Soft reset was created with HVM in mind so I wouldn't be surprised there was a check for HVM guest type.
Now we have PVH guest type (for x86 and ARM), checking for device model should definitely be conditional on HVM guest type, a knob in configuration or guest runtime state.
Quoted 10 lines
Quoted 2 lines
Are there any guide or sample code for implementation of this feature?
I haven't fully though about the soft reset on Arm.
From my understanding, for a first implementation, replacing the domain shared info page with a new page (see the implementation in the x86 version of
arch_domain_create) should be sufficient. You should be able tosoft_resetyour domain afterwards.
Quoted 8 lines
For a more robust implementation, I think we need to warn if foreign mappings are still present because they are mapping to another guest. There might be interesting thing happening if they are still present. You would need to go through the P2M and check if there are a foreign mappings in place.
There might be other mappings to take care of (i.e grant-table...) but I didn't have time to look whether it is strictly necessary yet.
Going through x86 side patches would be a good start.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel