[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 6/6] hw/cxl: Add clear poison mailbox command support.
|
From: |
Jonathan Cameron |
|
Subject: |
Re: [PATCH v5 6/6] hw/cxl: Add clear poison mailbox command support. |
|
Date: |
Fri, 19 May 2023 10:21:32 +0100 |
> > diff --git a/hw/mem/cxl_type3.c b/hw/mem/cxl_type3.c
> > index ab600735eb..a247f506b7 100644
> > --- a/hw/mem/cxl_type3.c
> > +++ b/hw/mem/cxl_type3.c
> > @@ -947,6 +947,42 @@ static void set_lsa(CXLType3Dev *ct3d, const void
> > *buf, uint64_t size,
> > */
> > }
> >
> > +static bool set_cacheline(CXLType3Dev *ct3d, uint64_t dpa_offset, uint8_t
> > *data)
> > +{
> > + MemoryRegion *vmr = NULL, *pmr = NULL;
> > + AddressSpace *as;
> > +
> > + if (ct3d->hostvmem) {
> > + vmr = host_memory_backend_get_memory(ct3d->hostvmem);
> > + }
> > + if (ct3d->hostpmem) {
> > + pmr = host_memory_backend_get_memory(ct3d->hostpmem);
> > + }
> > +
> > + if (!vmr && !pmr) {
> > + return false;
> > + }
> > +
> > + if (dpa_offset + 64 > int128_get64(ct3d->cxl_dstate.mem_size)) {
> > + return false;
> > + }
>
> Fails build:
>
> https://gitlab.com/mstredhat/qemu/-/jobs/4313193004
Fix is just dropping the int128_get64 and accessing directly.
Looks like a wrong 'fix' for the wrong type of size variable (the others
are all replaced now with the mem_region access functions).
I'll send a v6 shortly.
Thanks,
Jonathan