[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 08/11] pvh/acpi: Handle ACPI accesses for PVH guests
On Wed, Nov 09, 2016 at 09:39:56AM -0500, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> > --- > CC: Paul Durrant <paul.durrant@xxxxxxxxxx> > --- > 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.wilk@xxxxxxxxxx> _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |