{"id":809731,"url":"http://patchwork.ozlabs.org/api/1.0/covers/809731/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20170904154316.4148-1-david@redhat.com>","date":"2017-09-04T15:42:57","name":"[v2,00/19] s390x cleanups and CPU hotplug via device_add","submitter":{"id":70402,"url":"http://patchwork.ozlabs.org/api/1.0/people/70402/?format=json","name":"David Hildenbrand","email":"david@redhat.com"},"series":[{"id":1412,"url":"http://patchwork.ozlabs.org/api/1.0/series/1412/?format=json","date":"2017-09-04T15:42:57","name":"s390x cleanups and CPU hotplug via device_add","version":2,"mbox":"http://patchwork.ozlabs.org/series/1412/mbox/"}],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ext-mx03.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx03.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=david@redhat.com"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xmDfp4L7Cz9s7C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 01:44:18 +1000 (AEST)","from localhost ([::1]:54492 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dotXs-0004IG-KE\n\tfor incoming@patchwork.ozlabs.org; Mon, 04 Sep 2017 11:44:16 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:37371)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <david@redhat.com>) id 1dotX6-0004Ey-NG\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 11:43:33 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <david@redhat.com>) id 1dotX1-0000q7-S9\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 11:43:28 -0400","from mx1.redhat.com ([209.132.183.28]:50762)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <david@redhat.com>) id 1dotX1-0000p6-Je\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 11:43:23 -0400","from smtp.corp.redhat.com\n\t(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id B164A76A11;\n\tMon,  4 Sep 2017 15:43:21 +0000 (UTC)","from t460s.redhat.com (ovpn-116-139.ams2.redhat.com\n\t[10.36.116.139])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id F01DFBF672;\n\tMon,  4 Sep 2017 15:43:17 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com B164A76A11","From":"David Hildenbrand <david@redhat.com>","To":"qemu-devel@nongnu.org","Date":"Mon,  4 Sep 2017 17:42:57 +0200","Message-Id":"<20170904154316.4148-1-david@redhat.com>","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.13","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.27]);\n\tMon, 04 Sep 2017 15:43:21 +0000 (UTC)","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"209.132.183.28","Subject":"[Qemu-devel] [PATCH v2 00/19] s390x cleanups and CPU hotplug via\n\tdevice_add","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"thuth@redhat.com, Eduardo Habkost <ehabkost@redhat.com>, david@redhat.com,\n\tcohuck@redhat.com, Richard Henderson <richard.henderson@linaro.org>, \n\tAlexander Graf <agraf@suse.de>, borntraeger@de.ibm.com","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"The first patches are a bunch of cleanups. I decided to go the\nextra mile and implement CPU hotplug via \"device_add\", as well as\n\"query-hotpluggable-cpus\". So the last patches in this series differ\nto v1. I tried to stick as much as possible to x86.\n\nOn s390x, only complete cores can be plugged. Cores have to be plugged in\nthe right order (core-id 0, 1, 2 ...). CPU hot unplug is not supported\nby the architecture.\n\nIn addition, we now also print the CPU model list in sorted order and allow\nonly 1 CPU for TCG.\n\nv1 -> v2:\n- \"exec,dump,i386,ppc,s390x: don't include exec/cpu-all.h explicitly\"\n-- added a few instances I missed\n- \"s390x: get rid of s390-virtio.c\"\n-- move everything in the first shot and clean the \"cpu_states\" stuff up\n   in later patches, when we have ms->possible_cpus.\n- Added \"target/s390x: move typedef of S390CPU to its definition\"\n- Added \"s390x: move s390_virtio_hypercall() to s390-virtio-hcall.h\"\n- Added \"s390x: move two function declarations to s390-virtio-ccw.h\"\n- Added \"s390x: move sclp_service_call() to interrupt.c\"\n- \"target/s390x: use program_interrupt() in per_check_exception()\"\n-- Add a comment describing my concern\n- \"s390x: allow only 1 CPU with TCG\"\n-- Add a #define to easily be able to change it (e.g. for development)\n- Added \"target/s390x: set cpu->id for linux user when realizing\"\n- \"target/s390x: use \"core-id\" for cpu number/address/id handling\"\n-- I now use \"core-id\" as property name, because that will be used by\n   device_add\n- \"target/s390x: rename next_cpu_id to next_core_id\"\n-- Also change to the term \"core_id\"\n- Added \"s390x: print CPU definitions in sorted order\"\n- Added \"s390x: allow cpu hotplug via device_add\"\n- Added \"s390x: CPU hot unplug via device_del cannot work\"\n- Added \"s390x: implement query-hotpluggable-cpu\"\n- Added \"s390x: get rid of cpu_s390x_create()\"\n\nDavid Hildenbrand (19):\n  exec,dump,i386,ppc,s390x: don't include exec/cpu-all.h explicitly\n  cpu: drop old comments describing members\n  s390x: get rid of s390-virtio.c\n  s390x: rename s390-virtio.h to s390-virtio-hcall.h\n  target/s390x: move typedef of S390CPU to its definition\n  s390x: move s390_virtio_hypercall() to s390-virtio-hcall.h\n  s390x: move two function declarations to s390-virtio-ccw.h\n  s390x: move sclp_service_call() to interrupt.c\n  target/s390x: use trigger_pgm_exception() in\n    s390_cpu_handle_mmu_fault()\n  target/s390x: use program_interrupt() in per_check_exception()\n  s390x: allow only 1 CPU with TCG\n  target/s390x: set cpu->id for linux user when realizing\n  target/s390x: use \"core-id\" for cpu number/address/id handling\n  target/s390x: rename next_cpu_id to next_core_id\n  s390x: print CPU definitions in sorted order\n  s390x: allow cpu hotplug via device_add\n  s390x: CPU hot unplug via device_del cannot work\n  s390x: implement query-hotpluggable-cpus\n  s390x: get rid of cpu_s390x_create()\n\n dump.c                             |   1 -\n exec.c                             |   2 -\n hw/s390x/Makefile.objs             |   1 -\n hw/s390x/s390-virtio-ccw.c         | 259 +++++++++++++++++++++++++++++++++++--\n hw/s390x/s390-virtio-hcall.c       |   2 +-\n hw/s390x/s390-virtio-hcall.h       |  21 +++\n hw/s390x/s390-virtio.c             |  37 ------\n hw/s390x/s390-virtio.h             |  35 -----\n hw/s390x/sclp.c                    |  51 +-------\n include/hw/s390x/s390-virtio-ccw.h |   3 +\n include/hw/s390x/sclp.h            |   1 +\n include/qom/cpu.h                  |   6 +-\n qapi-schema.json                   |  16 +++\n target/i386/arch_dump.c            |   1 -\n target/i386/arch_memory_mapping.c  |   1 -\n target/i386/svm_helper.c           |   1 -\n target/ppc/arch_dump.c             |   1 -\n target/s390x/arch_dump.c           |   1 -\n target/s390x/cpu-qom.h             |   4 +-\n target/s390x/cpu.c                 |  86 ++++--------\n target/s390x/cpu.h                 |  19 +--\n target/s390x/cpu_models.c          |  65 ++++++----\n target/s390x/diag.c                |   1 +\n target/s390x/excp_helper.c         |   5 +-\n target/s390x/helper.c              |  47 +------\n target/s390x/internal.h            |   1 -\n target/s390x/interrupt.c           |  52 ++++++++\n target/s390x/kvm.c                 |   3 +-\n target/s390x/misc_helper.c         |  22 ++--\n target/s390x/translate.c           |   5 +-\n 30 files changed, 443 insertions(+), 307 deletions(-)\n create mode 100644 hw/s390x/s390-virtio-hcall.h\n delete mode 100644 hw/s390x/s390-virtio.h"}