From: Andrew Cooper Date: Thu, 8 Mar 2018 13:58:41 +0000 (+0000) Subject: x86/domain: Remove unused parameters from {hvm,pv}_domain_initialise() X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~392 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a4ce1ae4d018dc6f2716c4c9f3383e7a9f4d9183;p=xen.git x86/domain: Remove unused parameters from {hvm,pv}_domain_initialise() Neither domcr_flags nor config are used on either side. Drop them, making {hvm,pv}_domain_initialise() symmetric with all the other domain/vcpu initialise/destroy calls. Signed-off-by: Andrew Cooper Reviewed-by: Wei Liu Acked-by: Jan Beulich Reviewed-by: Roger Pau Monné --- diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index eba8277663..a39c4d9ca9 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -538,7 +538,7 @@ int arch_domain_create(struct domain *d, unsigned int domcr_flags, if ( is_hvm_domain(d) ) { - if ( (rc = hvm_domain_initialise(d, domcr_flags, config)) != 0 ) + if ( (rc = hvm_domain_initialise(d)) != 0 ) goto fail; } else if ( is_idle_domain(d) ) @@ -553,7 +553,7 @@ int arch_domain_create(struct domain *d, unsigned int domcr_flags, } else { - if ( (rc = pv_domain_initialise(d, domcr_flags, config)) != 0 ) + if ( (rc = pv_domain_initialise(d)) != 0 ) goto fail; } diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 461866420d..b3a6e1f740 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -568,8 +568,7 @@ static int hvm_print_line( return X86EMUL_OKAY; } -int hvm_domain_initialise(struct domain *d, unsigned long domcr_flags, - struct xen_arch_domainconfig *config) +int hvm_domain_initialise(struct domain *d) { unsigned int nr_gsis; int rc; diff --git a/xen/arch/x86/pv/domain.c b/xen/arch/x86/pv/domain.c index 2c784fb3cc..01c62e2d45 100644 --- a/xen/arch/x86/pv/domain.c +++ b/xen/arch/x86/pv/domain.c @@ -177,8 +177,7 @@ void pv_domain_destroy(struct domain *d) } -int pv_domain_initialise(struct domain *d, unsigned int domcr_flags, - struct xen_arch_domainconfig *config) +int pv_domain_initialise(struct domain *d) { static const struct arch_csw pv_csw = { .from = paravirt_ctxt_switch_from, diff --git a/xen/include/asm-x86/hvm/hvm.h b/xen/include/asm-x86/hvm/hvm.h index 9aa6c72d9d..2376ed6912 100644 --- a/xen/include/asm-x86/hvm/hvm.h +++ b/xen/include/asm-x86/hvm/hvm.h @@ -240,8 +240,7 @@ extern s8 hvm_port80_allowed; extern const struct hvm_function_table *start_svm(void); extern const struct hvm_function_table *start_vmx(void); -int hvm_domain_initialise(struct domain *d, unsigned long domcr_flags, - struct xen_arch_domainconfig *config); +int hvm_domain_initialise(struct domain *d); void hvm_domain_relinquish_resources(struct domain *d); void hvm_domain_destroy(struct domain *d); void hvm_domain_soft_reset(struct domain *d); diff --git a/xen/include/asm-x86/pv/domain.h b/xen/include/asm-x86/pv/domain.h index acdf140fbd..5e34176939 100644 --- a/xen/include/asm-x86/pv/domain.h +++ b/xen/include/asm-x86/pv/domain.h @@ -26,8 +26,7 @@ void pv_vcpu_destroy(struct vcpu *v); int pv_vcpu_initialise(struct vcpu *v); void pv_domain_destroy(struct domain *d); -int pv_domain_initialise(struct domain *d, unsigned int domcr_flags, - struct xen_arch_domainconfig *config); +int pv_domain_initialise(struct domain *d); #else /* !CONFIG_PV */ @@ -36,12 +35,8 @@ int pv_domain_initialise(struct domain *d, unsigned int domcr_flags, static inline void pv_vcpu_destroy(struct vcpu *v) {} static inline int pv_vcpu_initialise(struct vcpu *v) { return -EOPNOTSUPP; } static inline void pv_domain_destroy(struct domain *d) {} -static inline int pv_domain_initialise(struct domain *d, - unsigned int domcr_flags, - struct xen_arch_domainconfig *config); -{ - return -EOPNOTSUPP; -} +static inline int pv_domain_initialise(struct domain *d) { return -EOPNOTSUPP; } + #endif /* CONFIG_PV */ void paravirt_ctxt_switch_from(struct vcpu *v);