Re: [PATCH -v3 09/11] virt/coco/sev-guest: Add throttling awareness

From: Dionna Amalie Glaze
Date: Tue Mar 07 2023 - 15:28:35 EST


> @@ -320,7 +323,8 @@ static int enc_payload(struct snp_guest_dev *snp_dev, u64 seqno, int version, u8
>
> static int __handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, __u64 *fw_err)
> {
> - unsigned long err, override_err = 0;
> + unsigned long err = 0xff, override_err = 0;
> + unsigned long req_start = jiffies;
> unsigned int override_npages = 0;
> int rc;
>

Not blocking, but I do think in the previous version we discussed
changing this to the SEV_RET_NO_FW_CALL value instead of 0xff. I agree
that should be a later cleanup.

--
-Dionna Glaze, PhD (she/her)