qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 00/16] data-driven device registers


From: Alex Bennée
Subject: Re: [Qemu-devel] [PATCH v3 00/16] data-driven device registers
Date: Tue, 09 Feb 2016 17:22:13 +0000
User-agent: mu4e 0.9.17; emacs 25.0.90.4

Alistair Francis <address@hidden> writes:

> This patch series is based on Peter C's original register API. His
> original cover letter is below.

OK that's my first pass review. I seem to be missing 16/16 in my inbox
though.

My initial thoughts are it seems pretty useful from a validation point
of view. I'm a little uncomfortable with so much of the validation being
hidden behind debug statements though. I wonder if they should always be
checked but only optionally printed. Otherwise stuff is liable to
bit-rot until you turn on debug.

Also I'm not super crazy about the macro stuff. I can see what you are
trying to get to but I wonder if there is a neater way of defining this.
Obviously with C being what it is it could well be it is the least ugly
solution.

The case for this may be improved if in addition to new devices and
existing device could be converted to the data driven style. That would
give a nicer old-style <-> new-style comparison.

Once you've had a chance to go through the comments and fix up the
compile please CC me on future patches and I'll give the tyres a runtime
kicking ;-)

Cheers,

--
Alex Bennée



reply via email to

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