AMDESE / AMDSEV

AMD Secure Encrypted Virtualization
294 stars 85 forks source link

AES-NI inside SEV VM #168

Closed Mengyuan-L closed 1 year ago

Mengyuan-L commented 1 year ago

Hi, I am curious if it is secure to run AES-NI instruction inside a SEV/SEV-ES/SEV-SNP VM? Will the hardware intercept such instruction or are those instructions emulated by the hypervisor? Thanks for any information here.

tlendacky commented 1 year ago

I don't believe the AES-NI instructions are interceptable instructions, so I believe it is secure for SEV-ES and SEV-SNP since register state is protected. SEV doesn't protect register state, so data held in those registers would be visible to the hypervisor.

Mengyuan-L commented 1 year ago

Thanks!