Does qemu support "invlpg" instruction?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
venuswu
Posts: 2
Joined: Tue Jan 03, 2012 8:22 am

Does qemu support "invlpg" instruction?

Post by venuswu »

Does qemu support "invlpg" instruction?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Does qemu support "invlpg" instruction?

Post by Combuster »

Have you tried?


What CPUs support INVLPG? What CPU does qemu pretend to be?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Does qemu support "invlpg" instruction?

Post by iansjack »

Yes, it is supported.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Does qemu support "invlpg" instruction?

Post by Combuster »

Learning opportunity spoilt :(
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
OSwhatever
Member
Member
Posts: 595
Joined: Mon Jul 05, 2010 4:15 pm

Re: Does qemu support "invlpg" instruction?

Post by OSwhatever »

Does invlpg do anything in qemu or is it bascially a nop?
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Does qemu support "invlpg" instruction?

Post by iansjack »

"Learning opportunity spoilt"

Yes, but it's not immediately obvious whether this particular instruction is working correctly. I assume that the OP has a problem with it in qemu and will now come back with the real question.
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Does qemu support "invlpg" instruction?

Post by iansjack »

OSwhatever wrote:Does invlpg do anything in qemu or is it bascially a nop?
It would be a bit pointless if it did nothing, wouldn't it?
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Does qemu support "invlpg" instruction?

Post by Brendan »

Hi,
iansjack wrote:
OSwhatever wrote:Does invlpg do anything in qemu or is it bascially a nop?
It would be a bit pointless if it did nothing, wouldn't it?
For Qemu, how many entries does CPUID say the TLB holds?

If a CPU has "0 TLB entries", then what should INVLPG do? ;)


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Post Reply