|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v5 02/11] xen: introduce CDF_directmap
Hi, On 27/01/2022 07:49, Penny Zheng wrote: +- direct-map + + Only available when statically allocated memory is used for the domain. + An empty property to request the memory of the domain to be + direct-map (guest physical address == physical address). NIT: I would add "host" just after == so it is more explicit that we are talking about host physical address. + Under the "xen,domain" compatible node, one or more sub-nodes are present for the DomU kernel and ramdisk.diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.cindex 92a6c509e5..8110c1df86 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -692,7 +692,8 @@ int arch_sanitise_domain_config(struct xen_domctl_createdomain *config) }int arch_domain_create(struct domain *d, [...]
The outter parentheses are not necessary. However, you want to surround d with parentheses to avoid any surprise.
struct vtimer {
I am OK with creating a boolean for now. But long term, I think we should switch to storing the flags directly as this is more space efficient and make easier to add new flags (see d->options for instance). } __cacheline_aligned;struct arch_vcpudiff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index ef1812dc14..9835f90ea0 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -722,7 +722,8 @@ static bool emulation_flags_ok(const struct domain *d, uint32_t emflags) }int arch_domain_create(struct domain *d,- struct xen_domctl_createdomain *config) + struct xen_domctl_createdomain *config, + unsigned int flags) Shouldn't we return an error if the flag CDF_directmap is on x86? The other alternative is to...
... protect this with #ifdef CONFIG_ARM. Jan, what do you think? /** Arch-specifics. @@ -65,7 +67,8 @@ int map_vcpu_info(struct vcpu *v, unsigned long gfn, unsigned offset); void unmap_vcpu_info(struct vcpu *v);int arch_domain_create(struct domain *d,- struct xen_domctl_createdomain *config); + struct xen_domctl_createdomain *config, + unsigned int flags);void arch_domain_destroy(struct domain *d); Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |