|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 08/11] pvh/acpi: Handle ACPI accesses for PVH guests
On 11/22/2016 10:01 AM, Jan Beulich wrote:
Sure (Lock status/enable is required) Plus you using uint8_t here is at least odd, considering that this is about registers consisting of two 16-bit halves. I'm not even certain the spec permits these to be accessed with other than the specified granularity. GPE registers can be 1-byte long. And, in fact, that's how ACPICA accesses it. PM1 is indeed 2-byte long. I can make a check in the switch statement but I think I should leave the IOREQ_WRITE handling (at the bottom of this message) as it is for simplicity. Or wait - the literal 4-s here look bad too. Perhaps the two should be combined into a variable of type typeof(currd->arch.hvm_domain.acpi_io), so values and masks really match up. Which would still seem to make it desirable for the parts to be of type uint16_t, if permitted by the spec. But I then assign these masks to uint8_t mask. Wouldn't it be better to explicitly keep those as byte-size values? Especially given how they are used in IOREQ_WRITE case (below).
Oh, right, of course. -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |