summaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_ring.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2020-11-12 14:38:04 +0100
committerMichael S. Tsirkin <mst@redhat.com>2020-12-18 16:14:26 -0500
commit99f0b55ea6c3a2ed29776ca0dd549d523ae8d6d3 (patch)
tree5e045245ed8cf97bcc5af04adb0d38b8f1b5a80c /drivers/virtio/virtio_ring.c
parentd5614944254cf288b8fd46fda8c86d916346131d (diff)
downloadlinux-stable-99f0b55ea6c3a2ed29776ca0dd549d523ae8d6d3.tar.gz
linux-stable-99f0b55ea6c3a2ed29776ca0dd549d523ae8d6d3.tar.bz2
linux-stable-99f0b55ea6c3a2ed29776ca0dd549d523ae8d6d3.zip
virtio-mem: memory block states are specific to Sub Block Mode (SBM)
let's use a new "sbm" sub-struct to hold SBM-specific state and rename + move applicable definitions, functions, and variables (related to memory block states). While at it: - Drop the "_STATE" part from memory block states - Rename "nb_mb_state" to "mb_count" - "set_mb_state" / "get_mb_state" vs. "mb_set_state" / "mb_get_state" - Don't use lengthy "enum virtio_mem_smb_mb_state", simply use "uint8_t" Reviewed-by: Wei Yang <richard.weiyang@linux.alibaba.com> Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Jason Wang <jasowang@redhat.com> Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Signed-off-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20201112133815.13332-19-david@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_ring.c')
0 files changed, 0 insertions, 0 deletions