[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] accel: move qtest CpusAccel functions to a common locati
From: |
Jason Andryuk |
Subject: |
Re: [PATCH 1/2] accel: move qtest CpusAccel functions to a common location |
Date: |
Mon, 12 Oct 2020 16:38:16 -0400 |
On Mon, Oct 12, 2020 at 4:30 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> On 12/10/20 22:23, Claudio Fontana wrote:
> > On 10/12/20 10:07 PM, Jason Andryuk wrote:
> >> Move and rename accel/qtest/qtest-cpu.* files to accel/dummy/ so they
> >> can be re-used by Xen.
> >>
> >> Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
> >> ---
> >> .../qtest-cpus.c => dummy/dummy-cpus.c} | 22 +++++--------------
> >> .../qtest-cpus.h => dummy/dummy-cpus.h} | 10 ++++-----
> >> accel/dummy/meson.build | 6 +++++
> >> accel/meson.build | 1 +
> >> accel/qtest/meson.build | 1 -
> >> accel/qtest/qtest.c | 7 +++++-
> >> 6 files changed, 23 insertions(+), 24 deletions(-)
> >> rename accel/{qtest/qtest-cpus.c => dummy/dummy-cpus.c} (76%)
> >> rename accel/{qtest/qtest-cpus.h => dummy/dummy-cpus.h} (59%)
> >> create mode 100644 accel/dummy/meson.build
>
> Maybe accel/dummy-cpus.c, no need to add a new directory.
Sure.
> >> diff --git a/accel/qtest/qtest.c b/accel/qtest/qtest.c
> >> index 537e8b449c..ac54bc8f52 100644
> >> --- a/accel/qtest/qtest.c
> >> +++ b/accel/qtest/qtest.c
> >> @@ -25,7 +25,12 @@
> >> #include "qemu/main-loop.h"
> >> #include "hw/core/cpu.h"
> >>
> >> -#include "qtest-cpus.h"
> >> +#include "accel/dummy/dummy-cpus.h"
> >
> > this is a bit strange from my perspective, does not look right.
Yeah, I didn't really know where to put it.
> > Maybe this dummy cpu prototype should be somewhere in include/ ,
> > like include/sysemu/cpus.h or even better include/sysemu/accel.h
>
> Yes, it should be in include/sysemu/cpus.h.
Sounds good.
Thanks,
Jason
[PATCH 2/2] accel: Add xen CpusAccel using dummy-cpu, Jason Andryuk, 2020/10/12
Re: [PATCH 0/2] Add Xen CpusAccel, Claudio Fontana, 2020/10/12