Re: [Qemu-devel] [PATCH] ppc/xive: introduce helpers to access the XIVE structures

2018-12-18 Thread Cédric Le Goater
On 12/19/18 5:53 AM, David Gibson wrote: > On Tue, Dec 18, 2018 at 10:38:03PM +0100, Cédric Le Goater wrote: >> The XIVE internal structures (EAS, END, NVT) are architected to be Big >> Endian. The XIVE models, today, access the different fields of these >> structures using wrappers around the GETF

Re: [Qemu-devel] [PATCH] ppc/xive: introduce helpers to access the XIVE structures

2018-12-18 Thread David Gibson
On Tue, Dec 18, 2018 at 10:38:03PM +0100, Cédric Le Goater wrote: > The XIVE internal structures (EAS, END, NVT) are architected to be Big > Endian. The XIVE models, today, access the different fields of these > structures using wrappers around the GETFIELD/SETFIELD macros. The > definitions of the

[Qemu-devel] [PATCH] ppc/xive: introduce helpers to access the XIVE structures

2018-12-18 Thread Cédric Le Goater
The XIVE internal structures (EAS, END, NVT) are architected to be Big Endian. The XIVE models, today, access the different fields of these structures using wrappers around the GETFIELD/SETFIELD macros. The definitions of these macros depend on the host which seems unnecessary for guest only values