<div dir="ltr">Hello all,<div><br><div>I'm trying to get TSC via rdtscp() instruction in kata containers.</div><div>But, the value of TSC is different from that of host TSC. In runc container, I have the same TSC. My cpus are intel core and the codes are following:</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><font face="times new roman, serif">unsigned long long hi, lo;<br> __asm__ __volatile__ ("rdtscp" : "=a"(lo), "=d"(hi));<br> unsigned long long tsc = lo | hi<<32;</font><br></blockquote></div><div><br></div><div>As far as I know, the reason why is due to TSC virtualization, such as TSC offsetting, in VMM. Is this right? and the same method is applied in kata containers?</div><div><br></div><div>If so, is there a way to get the same host TSC from the kata containers? or disable TSC offset?</div></div></div>