mbox series

[v2,0/3] Add Xen CpusAccel

Message ID 20201013140511.5681-1-jandryuk@gmail.com
Headers show
Series Add Xen CpusAccel | expand

Message

Jason Andryuk Oct. 13, 2020, 2:05 p.m. UTC
Xen was left behind when CpusAccel became mandatory and fails the assert
in qemu_init_vcpu().  It relied on the same dummy cpu threads as qtest.
Move the qtest cpu functions to a common location and reuse them for
Xen.

v2:
  New patch "accel: Remove _WIN32 ifdef from qtest-cpus.c"
  Use accel/dummy-cpus.c for filename
  Put prototype in include/sysemu/cpus.h

Jason Andryuk (3):
  accel: Remove _WIN32 ifdef from qtest-cpus.c
  accel: move qtest CpusAccel functions to a common location
  accel: Add xen CpusAccel using dummy-cpus

 accel/{qtest/qtest-cpus.c => dummy-cpus.c} | 27 ++++------------------
 accel/meson.build                          |  8 +++++++
 accel/qtest/meson.build                    |  1 -
 accel/qtest/qtest-cpus.h                   | 17 --------------
 accel/qtest/qtest.c                        |  5 +++-
 accel/xen/xen-all.c                        |  8 +++++++
 include/sysemu/cpus.h                      |  3 +++
 7 files changed, 27 insertions(+), 42 deletions(-)
 rename accel/{qtest/qtest-cpus.c => dummy-cpus.c} (71%)
 delete mode 100644 accel/qtest/qtest-cpus.h

Comments

Paolo Bonzini Oct. 13, 2020, 5:16 p.m. UTC | #1
On 13/10/20 16:05, Jason Andryuk wrote:
> Xen was left behind when CpusAccel became mandatory and fails the assert

> in qemu_init_vcpu().  It relied on the same dummy cpu threads as qtest.

> Move the qtest cpu functions to a common location and reuse them for

> Xen.

> 

> v2:

>   New patch "accel: Remove _WIN32 ifdef from qtest-cpus.c"

>   Use accel/dummy-cpus.c for filename

>   Put prototype in include/sysemu/cpus.h

> 

> Jason Andryuk (3):

>   accel: Remove _WIN32 ifdef from qtest-cpus.c

>   accel: move qtest CpusAccel functions to a common location

>   accel: Add xen CpusAccel using dummy-cpus

> 

>  accel/{qtest/qtest-cpus.c => dummy-cpus.c} | 27 ++++------------------

>  accel/meson.build                          |  8 +++++++

>  accel/qtest/meson.build                    |  1 -

>  accel/qtest/qtest-cpus.h                   | 17 --------------

>  accel/qtest/qtest.c                        |  5 +++-

>  accel/xen/xen-all.c                        |  8 +++++++

>  include/sysemu/cpus.h                      |  3 +++

>  7 files changed, 27 insertions(+), 42 deletions(-)

>  rename accel/{qtest/qtest-cpus.c => dummy-cpus.c} (71%)

>  delete mode 100644 accel/qtest/qtest-cpus.h

> 


Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Jason Andryuk Oct. 22, 2020, 3:17 p.m. UTC | #2
On Tue, Oct 13, 2020 at 1:16 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
>

> On 13/10/20 16:05, Jason Andryuk wrote:

> > Xen was left behind when CpusAccel became mandatory and fails the assert

> > in qemu_init_vcpu().  It relied on the same dummy cpu threads as qtest.

> > Move the qtest cpu functions to a common location and reuse them for

> > Xen.

> >

> > v2:

> >   New patch "accel: Remove _WIN32 ifdef from qtest-cpus.c"

> >   Use accel/dummy-cpus.c for filename

> >   Put prototype in include/sysemu/cpus.h

> >

> > Jason Andryuk (3):

> >   accel: Remove _WIN32 ifdef from qtest-cpus.c

> >   accel: move qtest CpusAccel functions to a common location

> >   accel: Add xen CpusAccel using dummy-cpus

> >

> >  accel/{qtest/qtest-cpus.c => dummy-cpus.c} | 27 ++++------------------

> >  accel/meson.build                          |  8 +++++++

> >  accel/qtest/meson.build                    |  1 -

> >  accel/qtest/qtest-cpus.h                   | 17 --------------

> >  accel/qtest/qtest.c                        |  5 +++-

> >  accel/xen/xen-all.c                        |  8 +++++++

> >  include/sysemu/cpus.h                      |  3 +++

> >  7 files changed, 27 insertions(+), 42 deletions(-)

> >  rename accel/{qtest/qtest-cpus.c => dummy-cpus.c} (71%)

> >  delete mode 100644 accel/qtest/qtest-cpus.h

> >

>

> Acked-by: Paolo Bonzini <pbonzini@redhat.com>


Thank you, Paolo.  Also Anthony Acked and Claudio Reviewed patch 3.
How can we get this into the tree?

Regards,
Jason
Paolo Bonzini Oct. 22, 2020, 3:29 p.m. UTC | #3
On 22/10/20 17:17, Jason Andryuk wrote:
> On Tue, Oct 13, 2020 at 1:16 PM Paolo Bonzini <pbonzini@redhat.com> wrote:

>>

>> On 13/10/20 16:05, Jason Andryuk wrote:

>>> Xen was left behind when CpusAccel became mandatory and fails the assert

>>> in qemu_init_vcpu().  It relied on the same dummy cpu threads as qtest.

>>> Move the qtest cpu functions to a common location and reuse them for

>>> Xen.

>>>

>>> v2:

>>>   New patch "accel: Remove _WIN32 ifdef from qtest-cpus.c"

>>>   Use accel/dummy-cpus.c for filename

>>>   Put prototype in include/sysemu/cpus.h

>>>

>>> Jason Andryuk (3):

>>>   accel: Remove _WIN32 ifdef from qtest-cpus.c

>>>   accel: move qtest CpusAccel functions to a common location

>>>   accel: Add xen CpusAccel using dummy-cpus

>>>

>>>  accel/{qtest/qtest-cpus.c => dummy-cpus.c} | 27 ++++------------------

>>>  accel/meson.build                          |  8 +++++++

>>>  accel/qtest/meson.build                    |  1 -

>>>  accel/qtest/qtest-cpus.h                   | 17 --------------

>>>  accel/qtest/qtest.c                        |  5 +++-

>>>  accel/xen/xen-all.c                        |  8 +++++++

>>>  include/sysemu/cpus.h                      |  3 +++

>>>  7 files changed, 27 insertions(+), 42 deletions(-)

>>>  rename accel/{qtest/qtest-cpus.c => dummy-cpus.c} (71%)

>>>  delete mode 100644 accel/qtest/qtest-cpus.h

>>>

>>

>> Acked-by: Paolo Bonzini <pbonzini@redhat.com>

> 

> Thank you, Paolo.  Also Anthony Acked and Claudio Reviewed patch 3.

> How can we get this into the tree?


I think Anthony should send a pull request?

Paolo
Thomas Huth Oct. 23, 2020, 7:09 a.m. UTC | #4
On 22/10/2020 17.29, Paolo Bonzini wrote:
> On 22/10/20 17:17, Jason Andryuk wrote:

>> On Tue, Oct 13, 2020 at 1:16 PM Paolo Bonzini <pbonzini@redhat.com> wrote:

>>>

>>> On 13/10/20 16:05, Jason Andryuk wrote:

>>>> Xen was left behind when CpusAccel became mandatory and fails the assert

>>>> in qemu_init_vcpu().  It relied on the same dummy cpu threads as qtest.

>>>> Move the qtest cpu functions to a common location and reuse them for

>>>> Xen.

>>>>

>>>> v2:

>>>>   New patch "accel: Remove _WIN32 ifdef from qtest-cpus.c"

>>>>   Use accel/dummy-cpus.c for filename

>>>>   Put prototype in include/sysemu/cpus.h

>>>>

>>>> Jason Andryuk (3):

>>>>   accel: Remove _WIN32 ifdef from qtest-cpus.c

>>>>   accel: move qtest CpusAccel functions to a common location

>>>>   accel: Add xen CpusAccel using dummy-cpus

>>>>

>>>>  accel/{qtest/qtest-cpus.c => dummy-cpus.c} | 27 ++++------------------

>>>>  accel/meson.build                          |  8 +++++++

>>>>  accel/qtest/meson.build                    |  1 -

>>>>  accel/qtest/qtest-cpus.h                   | 17 --------------

>>>>  accel/qtest/qtest.c                        |  5 +++-

>>>>  accel/xen/xen-all.c                        |  8 +++++++

>>>>  include/sysemu/cpus.h                      |  3 +++

>>>>  7 files changed, 27 insertions(+), 42 deletions(-)

>>>>  rename accel/{qtest/qtest-cpus.c => dummy-cpus.c} (71%)

>>>>  delete mode 100644 accel/qtest/qtest-cpus.h

>>>>

>>>

>>> Acked-by: Paolo Bonzini <pbonzini@redhat.com>

>>

>> Thank you, Paolo.  Also Anthony Acked and Claudio Reviewed patch 3.

>> How can we get this into the tree?

> 

> I think Anthony should send a pull request?


Since Anthony acked patch 3, I think I can also take it through the qtest tree.

 Thomas
Paolo Bonzini Oct. 23, 2020, 9:34 a.m. UTC | #5
On 23/10/20 09:09, Thomas Huth wrote:
> On 22/10/2020 17.29, Paolo Bonzini wrote:

>> On 22/10/20 17:17, Jason Andryuk wrote:

>>> On Tue, Oct 13, 2020 at 1:16 PM Paolo Bonzini <pbonzini@redhat.com> wrote:

>>>>

>>>> On 13/10/20 16:05, Jason Andryuk wrote:

>>>>> Xen was left behind when CpusAccel became mandatory and fails the assert

>>>>> in qemu_init_vcpu().  It relied on the same dummy cpu threads as qtest.

>>>>> Move the qtest cpu functions to a common location and reuse them for

>>>>> Xen.

>>>>>

>>>>> v2:

>>>>>   New patch "accel: Remove _WIN32 ifdef from qtest-cpus.c"

>>>>>   Use accel/dummy-cpus.c for filename

>>>>>   Put prototype in include/sysemu/cpus.h

>>>>>

>>>>> Jason Andryuk (3):

>>>>>   accel: Remove _WIN32 ifdef from qtest-cpus.c

>>>>>   accel: move qtest CpusAccel functions to a common location

>>>>>   accel: Add xen CpusAccel using dummy-cpus

>>>>>

>>>>>  accel/{qtest/qtest-cpus.c => dummy-cpus.c} | 27 ++++------------------

>>>>>  accel/meson.build                          |  8 +++++++

>>>>>  accel/qtest/meson.build                    |  1 -

>>>>>  accel/qtest/qtest-cpus.h                   | 17 --------------

>>>>>  accel/qtest/qtest.c                        |  5 +++-

>>>>>  accel/xen/xen-all.c                        |  8 +++++++

>>>>>  include/sysemu/cpus.h                      |  3 +++

>>>>>  7 files changed, 27 insertions(+), 42 deletions(-)

>>>>>  rename accel/{qtest/qtest-cpus.c => dummy-cpus.c} (71%)

>>>>>  delete mode 100644 accel/qtest/qtest-cpus.h

>>>>>

>>>>

>>>> Acked-by: Paolo Bonzini <pbonzini@redhat.com>

>>>

>>> Thank you, Paolo.  Also Anthony Acked and Claudio Reviewed patch 3.

>>> How can we get this into the tree?

>>

>> I think Anthony should send a pull request?

> 

> Since Anthony acked patch 3, I think I can also take it through the qtest tree.


No objections, thanks!

Paolo