Thanks Peter for the valuable comments. >-----Original Message----- >From: Peter Maydell <peter.mayd...@linaro.org> >Sent: 24 June 2024 14:48 >To: Shiju Jose <shiju.j...@huawei.com> >Cc: qemu-devel@nongnu.org; linux-e...@vger.kernel.org; Jonathan Cameron ><jonathan.came...@huawei.com>; mchehab+hua...@kernel.org; tanxiaofei ><tanxiao...@huawei.com>; Zengtao (B) <prime.z...@hisilicon.com>; Linuxarm ><linux...@huawei.com> >Subject: Re: [RFC PATCH 1/1] hw/arm: FW first ARM processor error injection. > >On Fri, 21 Jun 2024 at 17:52, shiju.jose--- via <qemu-devel@nongnu.org> wrote: >> >> From: Shiju Jose <shiju.j...@huawei.com> >> > > > >> diff --git a/hw/arm/arm_error_inject.c b/hw/arm/arm_error_inject.c new >> file mode 100644 index 0000000000..953a9d6705 >> --- /dev/null >> +++ b/hw/arm/arm_error_inject.c >> @@ -0,0 +1,49 @@ >> +/* >> + * CXL Type 3 (memory expander) device > >This doesn't seem to match what the file actually does.
I will update. > >> + * >> + * Copyright(C) 2020 Intel Corporation. >> + * >> + * This work is licensed under the terms of the GNU GPL, version 2. >> + See the >> + * COPYING file in the top-level directory. >> + * >> + * SPDX-License-Identifier: GPL-v2-only > >Why are these new files GPL-v2-only? Our general preference (see the LICENSE) >file is for GPL-v2-or-any-later-version. > >I also notice that this file is marked as copyright Intel, but you're >submitting >from a Huawei email address. What's the history of this code? Thanks for pointing this error. Sure I will fix in the next version. > >> + */ >> + >> +#include "qemu/osdep.h" >> +#include "qemu/units.h" >> +#include "qemu/error-report.h" >> +#include "qapi-commands-arm-error-inject.h" >> +#include "hw/qdev-properties.h" >> +#include "qapi/error.h" >> +#include "qemu/log.h" >> +#include "qemu/module.h" >> +#include "qemu/pmem.h" >> +#include "qemu/range.h" >> +#include "qemu/rcu.h" >> +#include "qemu/guest-random.h" >> +#include "sysemu/hostmem.h" >> +#include "sysemu/numa.h" >> +#include "hw/boards.h" >> +#include "hw/acpi/ghes.h" > >Looking at the code here I'm pretty sure you don't need anywhere near all of >these include lines. I will check this and fix. > >> + >> +#define DWORD_BYTE 4 > >This seems to be unused. Not used. I will delete this. > >thanks >-- PMM Thanks, Shiju