From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Auger Eric <eric.auger@redhat.com>
Cc: Prem Mallappa <prem.mallappa@broadcom.com>,
Peter Maydell <peter.maydell@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2 1/9] log: Add new IOMMU type
Date: Mon, 26 Sep 2016 20:30:37 +0200 [thread overview]
Message-ID: <20160926183037.GD5931@toto> (raw)
In-Reply-To: <efad3c95-bcf5-1fb8-1f48-1eeb4df90577@redhat.com>
On Mon, Sep 26, 2016 at 08:54:52AM +0200, Auger Eric wrote:
> Hi Edgar, Prem,
>
> On 25/09/2016 16:58, Edgar E. Iglesias wrote:
> > On Tue, Sep 13, 2016 at 01:53:39AM +0530, Prem Mallappa wrote:
> >> On Fri, Sep 9, 2016 at 9:06 PM, Auger Eric <eric.auger@redhat.com> wrote:
> >>
> >>> Hi Prem,
> >>>
> >>> Missing commit message
> >>>
> >>>> Signed-off-by: Prem Mallappa <prem.mallappa@broadcom.com>
> >>>> ---
> >>>> include/qemu/log.h | 1 +
> >>>> util/log.c | 2 ++
> >>>> 2 files changed, 3 insertions(+)
> >>>>
> >>>> diff --git a/include/qemu/log.h b/include/qemu/log.h
> >>>> index 234fa81..3dd2131 100644
> >>>> --- a/include/qemu/log.h
> >>>> +++ b/include/qemu/log.h
> >>>> @@ -42,6 +42,7 @@ static inline bool qemu_log_separate(void)
> >>>> #define CPU_LOG_TB_NOCHAIN (1 << 13)
> >>>> #define CPU_LOG_PAGE (1 << 14)
> >>>> #define LOG_TRACE (1 << 15)
> >>>> +#define CPU_LOG_IOMMU (1 << 16)
> >>> why is it prefixed with CPU_ ?
> >>> besides all arm gic devices seem to use LOG_GUEST_ERROR. what is the
> >>> rationale behind introducing a new enum?
> >>>
> >>
> >> Will change this to LOG_GUEST_ERROR, if others on the list are okay.
> >
> > Hi,
> >
> > LOG_GUEST_ERROR is used for cases when the guest programs things in bad
> > way. E.g sets up a register in an invalid manner or writes to regs that
> > don't exist.
> >
> > In this case we're logging information for valid translation steps, I
> > would prefer if we could use something else than LOG_GUEST_ERROR.
> > An IOMMU logging class sounds good to me.
>
> Thank you for the clarification; so indeed LOG_GUEST_ERROR which was my
> suggestion is not a good idea. With respect to that patch I was also
> wondering whether the CPU_ prefix was relevant.
Right, the CPU_ prefix should probably be dropped if we use a new IOMMU log mask.
Cheers,
Edgar
next prev parent reply other threads:[~2016-09-26 18:31 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-22 16:17 [Qemu-devel] [PATCH v2 0/9] SMMUv3 Emulation support Prem Mallappa
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 1/9] log: Add new IOMMU type Prem Mallappa
2016-09-09 15:36 ` Auger Eric
2016-09-12 20:23 ` Prem Mallappa
2016-09-25 14:58 ` Edgar E. Iglesias
2016-09-26 6:54 ` Auger Eric
2016-09-26 18:30 ` Edgar E. Iglesias [this message]
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 2/9] devicetree: Added new APIs to make use of more fdt functions Prem Mallappa
2016-09-09 16:02 ` Auger Eric
2016-09-12 20:21 ` Prem Mallappa
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 3/9] hw: arm: SMMUv3 emulation model Prem Mallappa
2016-09-25 16:37 ` Edgar E. Iglesias
2016-09-26 5:27 ` Prem Mallappa
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 4/9] hw: arm: Added SMMUv3 files for build Prem Mallappa
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 5/9] hw: arm: Add SMMUv3 to virt platform, create DTS accordingly Prem Mallappa
2016-09-09 16:31 ` Auger Eric
2016-09-12 20:20 ` Prem Mallappa
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 6/9] [optional] hw: misc: added testdev for smmu Prem Mallappa
2017-03-27 15:24 ` Philippe Mathieu-Daudé
2017-03-27 15:41 ` Andrew Jones
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 7/9] [optional] tests: libqos: generic pci probing helpers Prem Mallappa
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 8/9] [optional] tests: SMMUv3 unit tests Prem Mallappa
2016-08-22 16:17 ` [Qemu-devel] [PATCH v2 9/9] [optional] arm: smmu-v3: ACPI IORT initial support Prem Mallappa
2016-09-09 15:24 ` Auger Eric
2016-09-12 20:42 ` Prem Mallappa
2016-09-23 13:10 ` Auger Eric
2016-09-23 14:07 ` Prem Mallappa
2016-09-23 16:38 ` Auger Eric
2016-08-31 21:44 ` [Qemu-devel] [PATCH v2 0/9] SMMUv3 Emulation support Auger Eric
2016-09-01 5:24 ` Prem Mallappa
2017-03-08 17:46 ` Auger Eric
2017-03-27 11:44 ` Edgar E. Iglesias
2017-03-27 12:18 ` Auger Eric
2017-03-27 12:28 ` Edgar E. Iglesias
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160926183037.GD5931@toto \
--to=edgar.iglesias@gmail.com \
--cc=eric.auger@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=prem.mallappa@broadcom.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.