|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for-next 07/16] xen/arm: Introduce copy_to_guest_phys_flush_dcache
Hi, On 06/12/17 12:27, Julien Grall wrote: On 12/06/2017 01:26 AM, Stefano Stabellini wrote:On Thu, 23 Nov 2017, Julien Grall wrote:Hi Andrew, On 23/11/17 18:49, Andrew Cooper wrote:On 23/11/17 18:32, Julien Grall wrote:This new function will be used in a follow-up patch to copy data to the Thinking a bit more to this, it might be better/safer to pass either a domain or a vCPU to copy_guest. I can see 2 solutions:
1# Introduce a union that use the same parameter:
union
{
struct
{
struct domain *d;
} ipa;
struct
{
struct vcpu *v;
} gva;
}
The structure here would be to ensure that it is clear that only
domain (resp. vcpu) should be used with ipa (resp. gva).
2# Have 2 parameters, vcpu and domain.
Any opinions?
Cheers,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |