[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMkAt6pYAKzEVkKV1iriQei3opD9j3M4bM3-0yB4sX1wss+jsQ@mail.gmail.com>
Date: Thu, 11 Jul 2024 10:11:11 -0600
From: Peter Gonda <pgonda@...gle.com>
To: "Pratik R. Sampat" <pratikrajesh.sampat@....com>
Cc: kvm@...r.kernel.org, shuah@...nel.org, thomas.lendacky@....com,
michael.roth@....com, seanjc@...gle.com, pbonzini@...hat.com,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC 2/5] selftests: KVM: Decouple SEV ioctls from asserts
> +int sev_vm_launch_update(struct kvm_vm *vm, uint32_t policy)
> +{
> + struct userspace_mem_region *region;
> + int ctr, ret;
>
> + hash_for_each(vm->regions.slot_hash, ctr, region, slot_node) {
> + ret = encrypt_region(vm, region, 0);
> + if (ret)
> + return ret;
> + }
> if (policy & SEV_POLICY_ES)
> vm_sev_ioctl(vm, KVM_SEV_LAUNCH_UPDATE_VMSA, NULL);
Adding the sev-es policy bit for negative testing is a bit confusing,
but I guess it works. For negative testing should we be more explicit?
Ditto for other usages of `policy` simply to toggle sev-es features.
Powered by blists - more mailing lists