mbox series

[0/2] hw/cxl: Two CXL emulation fixes.

Message ID 20220808122051.14822-1-Jonathan.Cameron@huawei.com
Headers show
Series hw/cxl: Two CXL emulation fixes. | expand

Message

Jonathan Cameron Aug. 8, 2022, 12:20 p.m. UTC
Peter Maydell reported both these issues, having looked into Coverity
identified issues. The memory leak was straight forward, but testing the
second patch identified a bug in the Linux kernel.

This bug has been fixed in the series
https://lore.kernel.org/linux-cxl/165973125417.1526540.14425647258796609596.stgit@dwillia2-xfh.jf.intel.com/T/#t
and is now available in the cxl.git pending branch.

Another clear example of why QEMU emulation is useful for kernel development.

Jonathan Cameron (2):
  hw/cxl: Fix memory leak in error paths
  hw/cxl: Fix wrong query of target ports

 hw/cxl/cxl-host.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Comments

Jonathan Cameron Aug. 17, 2022, 11:45 a.m. UTC | #1
On Mon, 8 Aug 2022 13:20:49 +0100
Jonathan Cameron <Jonathan.Cameron@huawei.com> wrote:

> Peter Maydell reported both these issues, having looked into Coverity
> identified issues. The memory leak was straight forward, but testing the
> second patch identified a bug in the Linux kernel.
> 
> This bug has been fixed in the series
> https://lore.kernel.org/linux-cxl/165973125417.1526540.14425647258796609596.stgit@dwillia2-xfh.jf.intel.com/T/#t
> and is now available in the cxl.git pending branch.
> 
> Another clear example of why QEMU emulation is useful for kernel development.

Hi,

Any feedback on these two fixes?

Along with a two more fixes to follow in a few mins these are needed for the region code
in Linux 6.0-rc1 to work (there is a kernel fix as well that came from testing against
QEMU).

For full support we need one more feature (serial number provisioning) but without that
we get regions working as long as you create them fresh on each boot.

Thanks,

Jonathan

> 
> Jonathan Cameron (2):
>   hw/cxl: Fix memory leak in error paths
>   hw/cxl: Fix wrong query of target ports
> 
>  hw/cxl/cxl-host.c | 17 ++++++++---------
>  1 file changed, 8 insertions(+), 9 deletions(-)
>