[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /mach
From: |
Alexey Kardashevskiy |
Subject: |
Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine |
Date: |
Fri, 21 Feb 2014 14:04:33 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On 02/21/2014 12:50 AM, Alexey Kardashevskiy wrote:
> From: Paolo Bonzini <address@hidden>
>
> This is a first step towards QOMifying /machine.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
I got interesting conversation about "sob" in my team so here it is:
Signed-off-by: Alexey Kardashevskiy <address@hidden>
Is that enough or I better repost the patch?
May be patchworks will pick it as it does for "RB" and other "by"'s.
> ---
> include/hw/boards.h | 1 +
> vl.c | 5 +++++
> 2 files changed, 6 insertions(+)
>
> diff --git a/include/hw/boards.h b/include/hw/boards.h
> index c2096e6..8640272 100644
> --- a/include/hw/boards.h
> +++ b/include/hw/boards.h
> @@ -29,6 +29,7 @@ struct QEMUMachine {
> const char *name;
> const char *alias;
> const char *desc;
> + const char *class_name;
> QEMUMachineInitFunc *init;
> QEMUMachineResetFunc *reset;
> QEMUMachineHotAddCPUFunc *hot_add_cpu;
> diff --git a/vl.c b/vl.c
> index 01ab7e4..b300721 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -4034,6 +4034,11 @@ int main(int argc, char **argv, char **envp)
> qtest_init(qtest_chrdev, qtest_log);
> }
>
> + if (machine->class_name) {
> + Object *m = object_new(machine->class_name);
> + object_property_add_child(object_get_root(), "machine", m, NULL);
> + }
> +
> machine_opts = qemu_get_machine_opts();
> kernel_filename = qemu_opt_get(machine_opts, "kernel");
> initrd_filename = qemu_opt_get(machine_opts, "initrd");
>
--
Alexey
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, (continued)
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Andreas Färber, 2014/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Paolo Bonzini, 2014/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Marcel Apfelbaum, 2014/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Paolo Bonzini, 2014/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Marcel Apfelbaum, 2014/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Alexey Kardashevskiy, 2014/02/28
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Paolo Bonzini, 2014/02/28
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Alexey Kardashevskiy, 2014/02/28
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Andreas Färber, 2014/02/28
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Paolo Bonzini, 2014/02/28
Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine,
Alexey Kardashevskiy <=
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Paolo Bonzini, 2014/02/21
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Alexey Kardashevskiy, 2014/02/26
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Markus Armbruster, 2014/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Alexey Kardashevskiy, 2014/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] vl: allow customizing the class of /machine, Markus Armbruster, 2014/02/27
[Qemu-devel] [PATCH v5 4/6] spapr-llan: add to boot device list, Alexey Kardashevskiy, 2014/02/20
Re: [Qemu-devel] [PATCH v5 0/6] spapr: bootindex support, Paolo Bonzini, 2014/02/20