Re: [Qemu-block] [PATCH v4 9/9] xen_disk: be consistent with use of xendev and blkdev->xendev

2018-05-17 Thread Paul Durrant
> -Original Message- > From: Paul Durrant [mailto:paul.durr...@citrix.com] > Sent: 17 May 2018 16:36 > To: xen-de...@lists.xenproject.org; qemu-block@nongnu.org; qemu- > de...@nongnu.org > Cc: Paul Durrant ; Stefano Stabellini > ; Anthony

[Qemu-block] [PATCH v4 9/9] xen_disk: be consistent with use of xendev and blkdev->xendev

2018-05-17 Thread Paul Durrant
Certain functions in xen_disk are called with a pointer to xendev (struct XenDevice *). They then use container_of() to acces the surrounding blkdev (struct XenBlkDev) but then in various places use >xendev when use of the original xendev pointer is shorter to express and clearly equivalent. This