Re: [PATCH -v1.1] x86/mm: Fix INVPCID asm constraint

2016-02-10 Thread Andy Lutomirski
er to simply declare the descriptor as a struct, >> rather than an array, then the original syntax would have been mostly >> correct: >> >> struct {u64 d[2];} desc = { pcid, addr }; >> asm ... "m" (desc), "c" (&desc) > > Sounds better. Do

[PATCH -v1.1] x86/mm: Fix INVPCID asm constraint

2016-02-10 Thread Borislav Petkov
__p) { volatile struct { char x[64]; } *p = __p; ... > It'd probably be easier to simply declare the descriptor as a struct, > rather than an array, then the original syntax would have been mostly > correct: > > struct {u64 d[2];} desc = { pcid, ad