Re: [Xen-devel] [PATCH v6 05/16] x86/hvm: unify internal portio and mmio intercepts

2015-07-08 Thread Jan Beulich
>>> On 03.07.15 at 18:25, wrote: > -void relocate_io_handler( > -struct domain *d, unsigned long old_addr, unsigned long new_addr, > -unsigned int size, int type) > +void relocate_portio_handler(struct domain *d, uint16_t old_port, > + uint16_t new_port, unsigne

Re: [Xen-devel] [PATCH v6 05/16] x86/hvm: unify internal portio and mmio intercepts

2015-07-08 Thread Jan Beulich
>>> On 03.07.15 at 18:25, wrote: > @@ -1465,11 +1462,12 @@ int hvm_domain_initialise(struct domain *d) > goto fail0; > > d->arch.hvm_domain.params = xzalloc_array(uint64_t, HVM_NR_PARAMS); > -d->arch.hvm_domain.io_handler = xmalloc(struct hvm_io_handler); > +d->arch.hvm_dom

[Xen-devel] [PATCH v6 05/16] x86/hvm: unify internal portio and mmio intercepts

2015-07-03 Thread Paul Durrant
The implementation of mmio and portio intercepts is unnecessarily different. This leads to much code duplication. This patch unifies much of the intercept handling, leaving only distinct handlers for stdvga mmio and dpci portio. Subsequent patches will unify those handlers. Signed-off-by: Paul Dur