[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for dr
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation |
Date: |
Wed, 11 Oct 2017 21:46:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 11/10/2017 15:08, Peter Maydell wrote:
>> Tracing is the right tool to detect bad guest code, and I think it makes
>> sense to mark conditions that shouldn't happen with a correctly
>> operating guest driver. I'm not sure if an exclamation mark is the best
>> syntax for this, because I wouldn't have intuitively understood what
>> it's supposed to tell me.
> We have qemu_log_mask(LOG_GUEST_ERROR, ...) for logging guest errors,
> so I think we should use that.
LOG_GUEST_ERROR is something different too. It means something that is
undefined according to the data sheet more or less, such as accessing a
non-existent reference.
Here the driver does some validation of the values that were written in
the registers, and tells the guest if the validation fails (by putting
something in another registers). Using a tracepoint sounds like the
right thing to do.
Paolo
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, (continued)
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Daniel P. Berrange, 2017/10/06
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Doug Gale, 2017/10/06
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Daniel P. Berrange, 2017/10/06
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Doug Gale, 2017/10/07
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Eric Blake, 2017/10/09
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Doug Gale, 2017/10/09
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Markus Armbruster, 2017/10/10
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Kevin Wolf, 2017/10/10
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Doug Gale, 2017/10/11
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation, Peter Maydell, 2017/10/11
- Re: [Qemu-block] [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation,
Paolo Bonzini <=