[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Xen-devel] [PATCH v5 09/18] xen: remove unnecessary co
From: |
Paul Durrant |
Subject: |
Re: [Qemu-devel] [Xen-devel] [PATCH v5 09/18] xen: remove unnecessary code from dataplane/xen-block.c |
Date: |
Mon, 17 Dec 2018 12:50:11 +0000 |
> -----Original Message-----
> From: Anthony PERARD [mailto:address@hidden
> Sent: 17 December 2018 12:28
> To: Paul Durrant <address@hidden>
> Cc: address@hidden; address@hidden; xen-
> address@hidden; Kevin Wolf <address@hidden>; Stefano
> Stabellini <address@hidden>; Stefan Hajnoczi
> <address@hidden>; Max Reitz <address@hidden>
> Subject: Re: [Xen-devel] [PATCH v5 09/18] xen: remove unnecessary code
> from dataplane/xen-block.c
>
> On Mon, Dec 17, 2018 at 11:40:39AM +0000, Paul Durrant wrote:
> > Not all of the code duplicated from xen_disk.c is required as the basis
> for
> > the new dataplane implementation so this patch removes extraneous code,
> > along with the legacy #includes and calls to the legacy xen_pv_printf()
> > function. Error messages are changed to be reported using
> error_report().
> >
> > NOTE: The code is still not yet built. Further transformations will be
> > required to make it correctly interface to the new
> XenBus/XenDevice
> > framework. They will be delivered in a subsequent patch.
> >
> > Signed-off-by: Paul Durrant <address@hidden>
> > Acked-by: Anthony Perard <address@hidden>
> > ---
> > Cc: Stefano Stabellini <address@hidden>
> > Cc: Stefan Hajnoczi <address@hidden>
> > Cc: Kevin Wolf <address@hidden>
> > Cc: Max Reitz <address@hidden>
> >
> > v2:
> > - Leave existing boilerplate alone, other than removing the now-
> incorrect
> > description
> > ---
> > hw/block/dataplane/xen-block.c | 409 ++--------------------------------
> -------
> > 1 file changed, 16 insertions(+), 393 deletions(-)
> >
> > diff --git a/hw/block/dataplane/xen-block.c b/hw/block/dataplane/xen-
> block.c
> > index 9fae505..98f987d 100644
> > --- a/hw/block/dataplane/xen-block.c
> > +++ b/hw/block/dataplane/xen-block.c
> > @@ -1,6 +1,4 @@
> > /*
> > - * xen paravirt block device backend
> > - *
> > * (c) Gerd Hoffmann <address@hidden>
> > *
> > * This program is free software; you can redistribute it and/or
> modify
> > @@ -19,26 +17,12 @@
> > * GNU GPL, version 2 or (at your option) any later version.
> > */
> >
> > -#include "qemu/osdep.h"
> > -#include "qemu/units.h"
> > -#include <sys/ioctl.h>
> > -#include <sys/uio.h>
> > -
> > -#include "hw/hw.h"
> > -#include "hw/xen/xen_backend.h"
> > -#include "xen_blkif.h"
> > -#include "sysemu/blockdev.h"
> > -#include "sysemu/iothread.h"
> > -#include "sysemu/block-backend.h"
> > -#include "qapi/error.h"
> > -#include "qapi/qmp/qdict.h"
> > -#include "qapi/qmp/qstring.h"
> > -#include "trace.h"
> > -
> > -/* ------------------------------------------------------------- */
> > -
> > -#define BLOCK_SIZE 512
> > -#define IOCB_COUNT (BLKIF_MAX_SEGMENTS_PER_REQUEST + 2)
> > +/*
> > + * Copyright (c) 2018 Citrix Systems Inc.
> > + *
> > + * This work is licensed under the terms of the GNU GPL, version 2 or
> later.
> > + * See the COPYING file in the top-level directory.
> > + */
>
> This patch obviously comes from v3 of the patch series. v4 was fine.
> Please check comments on v1 v2 and v3.
Damn it. Somehow my local 'qom29' repo had diverged from xenbits. I'll replace
that patch from there.
Paul
>
> Thanks,
>
> --
> Anthony PERARD
- [Qemu-devel] [PATCH v5 00/18] Xen PV backend 'qdevification', Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 07/18] xen: add event channel interface for XenDevice-s, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 06/18] xen: add grant table interface for XenDevice-s, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 03/18] xen: introduce 'xen-block', 'xen-disk' and 'xen-cdrom', Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 09/18] xen: remove unnecessary code from dataplane/xen-block.c, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 02/18] xen: introduce new 'XenBus' and 'XenDevice' object hierarchy, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 04/18] xen: create xenstore areas for XenDevice-s, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 05/18] xen: add xenstore watcher infrastructure, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 08/18] xen: duplicate xen_disk.c as basis of dataplane/xen-block.c, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 01/18] xen: re-name XenDevice to XenLegacyDevice..., Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 12/18] xen: remove 'ioreq' struct/varable/field names from dataplane/xen-block.c, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 15/18] xen: add a mechanism to automatically create XenDevice-s..., Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 11/18] xen: remove 'XenBlkDev' and 'blkdev' names from dataplane/xen-block, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 17/18] MAINTAINERS: add myself as a Xen maintainer, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v5 18/18] xen: remove the legacy 'xen_disk' backend, Paul Durrant, 2018/12/17