qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 17/18] ppc/pnv: Introduce user creatable pnv-phb4 devices


From: Cédric Le Goater
Subject: Re: [PATCH v2 17/18] ppc/pnv: Introduce user creatable pnv-phb4 devices
Date: Sat, 8 Jan 2022 12:11:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0

+        object_property_set_int(OBJECT(phb), "index",
+                                phb->phb_id, &error_abort);
+
+        pnv_phb4_set_stack_phb_props(stack, phb);
+
+        /* Assign the phb to the stack */
+        stack->phb = phb;

The stack object should check the validity of the stack->phb pointer always.


What do you mean by "check the validity"?


I am thinking of the usage of 'stack->phb', for instance in the routine
pnv_phb4_update_regions(). We should add an assert there.

Your changes seem to cleanup the stack <-> phb relation quite a lot. Which
is good.

Thanks,

C.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]