[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] virtio-mmio: fix guest kernel crash with SHM regions
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH] virtio-mmio: fix guest kernel crash with SHM regions |
Date: |
Thu, 7 Jan 2021 11:36:24 +0100 |
Hi,
> > According to the comments in the kernel, a non existent shared region
> > has a length of (u64)-1.
virtio spec says the same.
> > + case VIRTIO_MMIO_SHM_LEN_LOW:
> > + case VIRTIO_MMIO_SHM_LEN_HIGH:
> > + /*
> > + * VIRTIO_MMIO_SHM_SEL is unimplemented
> > + * according to the linux driver, if region length is -1
> > + * the shared memory doesn't exist
> > + */
> > + return -1;
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
take care,
Gerd