cachepc

Prime+Probe cache-based side-channel attack on AMD SEV-SNP protected virtual machines
git clone https://git.sinitax.com/sinitax/cachepc
Log | Files | Refs | Submodules | README | sfeed.txt

kvm-step_guest.S (325B)


      1#include "cachepc/const.h"
      2
      3#define TARGET_SET 15
      4
      5.text
      6.align(16)
      7.code16gcc
      8
      9guest:
     10.rept 100
     11    nop
     12.endr
     13
     14    mov $(L1_LINESIZE * (L1_SETS + 11)), %bx
     15    movb (%bx), %bl
     16
     17    mov $(L1_LINESIZE * (L1_SETS + 13)), %bx
     18    movb (%bx), %bl
     19
     20    mov $(L1_LINESIZE * (L1_SETS + 15)), %bx
     21    movb (%bx), %bl
     22
     23    jmp guest
     24