My comments here are mostly nits. The one big item I noticed is use of typedef on struct. coreboot a long time ago moved to the linux kernel convention of avoiding typedefs for structs. I'm wondering what others think here -- let this go in and fix it later, or fix it now, or just leave it?

you can find the long argument here: https://yarchive.net/comp/linux/typedefs.html

Note that I don't necessarily agree. The folks who invented C and the Unix kernel, when they got to Plan 9 in the 1980s, used typedef structs *exactly* the way torvalds claims you should not use them. I tend to take ken and dmr's words more than I take Linus', but not everyone does.

Overall, I think this is one of the most exciting things to go into coreboot in many years. I'm looking forward to being able to use it. This code holds out the promise of providing a VM for x86 that gives guests true bare metal performance (unless I misunderstand). Thanks for your contribution and (in advance) your patience with our review process.

I do suggest you at least give clang-fmt a try and see how many of your code formatting issues it resolves.

View Change

6 comments:

To view, visit change 33234. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If4adcd92c341162630ce1ec357ffcf8a135785ec
Gerrit-Change-Number: 33234
Gerrit-PatchSet: 6
Gerrit-Owner: Name of user not set #1002358
Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com>
Gerrit-Reviewer: Name of user not set #1002358
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Gerrit-CC: ron minnich <rminnich@gmail.com>
Gerrit-Comment-Date: Thu, 20 Jun 2019 01:06:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Rudolph <patrick.rudolph@9elements.com>
Comment-In-Reply-To: Name of user not set #1002358
Gerrit-MessageType: comment