On Wed, Nov 09, 2016 at 09:39:56AM -0500, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky <boris.ostrov...@oracle.com> > --- > CC: Paul Durrant <paul.durr...@citrix.com> > --- > Changes in v2: > * Use 'true/false' values for bools > > > xen/arch/x86/hvm/ioreq.c | 72 > ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 72 insertions(+) > > diff --git a/xen/arch/x86/hvm/ioreq.c b/xen/arch/x86/hvm/ioreq.c > index e6ff48f..3ef01cf 100644 > --- a/xen/arch/x86/hvm/ioreq.c > +++ b/xen/arch/x86/hvm/ioreq.c > @@ -1383,6 +1383,78 @@ static int hvm_access_cf8( > static int acpi_ioaccess( > int dir, unsigned int port, unsigned int bytes, uint32_t *val) > { > + unsigned int i; > + unsigned int bits = bytes * 8; > + unsigned int idx = port & 3; > + uint8_t *reg = NULL; > + bool is_cpu_map = false; > + struct domain *currd = current->domain; > + > + BUILD_BUG_ON((ACPI_PM1A_EVT_BLK_LEN != 4) || > + (ACPI_GPE0_BLK_LEN_V1 != 4)); > + > + if ( has_ioreq_cpuhp(currd) ) > + return X86EMUL_UNHANDLEABLE; > + > + switch (port)
Spaces around 'port' otherwise Reviewed-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel