Re: [PATCH v14 1/3] virt/coco/sev-guest: Add throttling awareness

From: Tom Lendacky
Date: Tue Feb 14 2023 - 09:28:34 EST


On 2/13/23 16:28, Dionna Amalie Glaze wrote:

This should really be a new, separate patch.


I had it as a separate patch and squashed since I felt it necessary to
be considered still a "Fixes" patch. Should both claim to fix the same
patch?

If they both fix a bug, yes. You can have multiple patches that fix different bugs that were all introduced by one commit.

Thanks,
Tom



It looks like you will ensure throttling by continually calling the
hypervisor for 60 seconds, shouldn't there be a delay here?


I can change cond_resched() to sleep_timeout_killable(some_constant)

- rc = snp_issue_guest_request(exit_code, &snp_dev->input, &err);
+ cond_resched();
+ goto retry;

+ }

Nit, add a blank line here.


Will do.

Thanks,
Tom