Re: [PATCH 3/5] hw/mem/cxl_type3: CDAT pre-allocate and check resources prior to work

2022-10-13 Thread Jonathan Cameron via
On Wed, 12 Oct 2022 14:21:18 -0400 Gregory Price wrote: > Makes the size of the allocated cdat table static (6 entries), > flattens the code, and reduces the number of exit conditions > > Signed-off-by: Gregory Price Hmm. I don't entirely like this as it stands because it leads to more

[PATCH 3/5] hw/mem/cxl_type3: CDAT pre-allocate and check resources prior to work

2022-10-12 Thread Gregory Price
Makes the size of the allocated cdat table static (6 entries), flattens the code, and reduces the number of exit conditions Signed-off-by: Gregory Price --- hw/mem/cxl_type3.c | 52 -- 1 file changed, 22 insertions(+), 30 deletions(-) diff --git