[Top][All Lists]

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

Re: [QEMU TCG] Qeustion about the PCID Feature in TCG

From: Paolo Bonzini
Subject: Re: [QEMU TCG] Qeustion about the PCID Feature in TCG
Date: Mon, 22 Feb 2021 19:18:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

On 22/02/21 18:59, Kaifeng Xu wrote:
Nice to get your replies. I am doing some research which requires me to have some system level memory traces for all memory instructions. I want to use that trace to do some TLB or cache studies.

Actually I don't care if I have the full PCID instruction implementation, I just need to know the PCID of each memory access, in order to do tagged TLB studies.

So I still have 2 questions:
1. Can I do this work in KVM mode, i.e. can plugin work in KVM mode?


2. Do I need to change anything to get the right PCID? I have seen the PCID field get set in cr3 but I am not sure it's the right one.

I think it's the right one, yes. It works mostly by chance, but it should work for your use case.


reply via email to

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