Re: [PATCH v3 16/18] cxl: Support the cxl kernel API from a guest

2016-02-10 Thread Ian Munsie
> +static int guest_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) > +{ > +/* config record is not writable from guest */ > +return -EIO; Perhaps -EPERM might be a better choice for these three? Acked-by: Ian Munsie ___ Linuxppc-

[PATCH v3 16/18] cxl: Support the cxl kernel API from a guest

2016-02-06 Thread Frederic Barrat
Like on bare-metal, the cxl driver creates a virtual PHB and a pci device for the AFU. The configuration space of the device is mapped to the configuration record of the AFU. Reuse the code defined in afu_cr_read8|16|32() when reading the configuration space of the AFU device. Even though the (vi