[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id one CP
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id one CPU is realized |
Date: |
Fri, 26 Apr 2013 14:33:09 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Apr 26, 2013 at 07:29:56PM +0200, Igor Mammedov wrote:
> Signed-off-by: Igor Mammedov <address@hidden>
I believe you meant "once CPU is realized" on subject line?
Except for that:
Reviewed-by: Eduardo Habkost <address@hidden>
> ---
> target-i386/cpu.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/target-i386/cpu.c b/target-i386/cpu.c
> index f1cecc0..3152ad5 100644
> --- a/target-i386/cpu.c
> +++ b/target-i386/cpu.c
> @@ -1289,6 +1289,12 @@ static void x86_cpuid_set_apic_id(Object *obj, Visitor
> *v, void *opaque,
> Error *error = NULL;
> int64_t value;
>
> + if (DEVICE(obj)->realized) {
> + error_setg(errp, "Attempt to set property '%s' on '%s' after "
> + "it was realized", name, object_get_typename(obj));
> + return;
> + }
> +
> visit_type_int(v, &value, name, &error);
> if (error) {
> error_propagate(errp, error);
> --
> 1.8.2.1
>
--
Eduardo
- Re: [Qemu-devel] [PATCH 04/15] target-i386: introduce apic-id property, (continued)
Re: [Qemu-devel] [PATCH 04/15] target-i386: introduce apic-id property, Eduardo Habkost, 2013/04/26
Re: [Qemu-devel] [PATCH 04/15] target-i386: introduce apic-id property, Andreas Färber, 2013/04/26
- [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id one CPU is realized, Igor Mammedov, 2013/04/26
- Re: [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id one CPU is realized, Andreas Färber, 2013/04/26
- Re: [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id one CPU is realized, Igor Mammedov, 2013/04/26
- [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id once CPU is realized, Igor Mammedov, 2013/04/26
- Re: [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id once CPU is realized, Andreas Färber, 2013/04/27
Re: [Qemu-devel] [PATCH] target-i386: Do not allow to set apic-id one CPU is realized,
Eduardo Habkost <=
[Qemu-devel] [PATCH 02/15] cpu: add helper cpu_exists(), to check if CPU with specified id exists, Igor Mammedov, 2013/04/25
[Qemu-devel] [PATCH 05/15] target-i386: introduce ICC bus/device/bridge, Igor Mammedov, 2013/04/25
[Qemu-devel] [PATCH 06/15] target-i386: cpu: attach ICC bus to CPU on its creation, Igor Mammedov, 2013/04/25
[Qemu-devel] [PATCH 07/15] target-i386: replace MSI_SPACE_SIZE with APIC_SPACE_SIZE, Igor Mammedov, 2013/04/25
[Qemu-devel] [PATCH 08/15] target-i386: kvmvapic: make expilict dependency on sysbus.h, Igor Mammedov, 2013/04/25
[Qemu-devel] [PATCH 09/15] target-i386: move APIC to ICC bus, Igor Mammedov, 2013/04/25