Re: [PATCH v5 04/17] x86/acrn: Introduce hypercall interfaces

From: Borislav Petkov
Date: Mon Nov 02 2020 - 12:20:04 EST


On Mon, Nov 02, 2020 at 10:09:01AM -0600, Segher Boessenkool wrote:
> I think that will work for x86_64. But it won't matter much, most of
> the time you give an immediate number.

Yeah, my question is more along the lines of "is this constraint somehow
special, i.e., 'ir' (and not 'm') or can it be whatever, i.e., 'g'"?

> It is a tiny bit neater of course (if anyone still remembers what "g"
> is, you cannot use it much these days).

Oh I always remember what it is because it is right there in the docs:

"6.47.3.1 Simple Constraints

...

‘g’ Any register, memory or immediate integer operand is allowed,
except for registers that are not general registers."

;-)

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette