Hi Mirela,

On 11/12/18 11:30 AM, Mirela Simonovic wrote:
From: Saeed Nowshadi <saeed.nowsh...@xilinx.com>

The arch_set_info_guest() has code to initialize the context of a VCPU.
When a VCPU is resumed it needs to go through the same context
initialization excluding all the validations that this routine does.
We move the actual VCPU context setting into a function so that it can be
shared with the resume path.

I would rather not introduce a function that skip validation. They are here to catch error when setting up vCPU registers. If those errors are not caught, then the hypervisor will likely crash on return to the guest.

Cheers,

--
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to