Skip to content

Commit

Permalink
Merge pull request #7 from roy-hopkins/snp-v3-wip-igvm_v2_idblock
Browse files Browse the repository at this point in the history
Implement IGVM policy and ID block support
  • Loading branch information
joergroedel authored Apr 12, 2024
2 parents 026267e + 7910d8b commit 260df2b
Show file tree
Hide file tree
Showing 5 changed files with 414 additions and 117 deletions.
12 changes: 12 additions & 0 deletions backends/confidential-guest-support.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ static int set_guest_state(hwaddr gpa, uint8_t *ptr, uint64_t len,
return -1;
}

static int set_guest_policy(ConfidentialGuestPolicyType policy_type,
uint64_t policy,
void *policy_data1, uint32_t policy_data1_size,
void *policy_data2, uint32_t policy_data2_size,
Error **errp)
{
error_setg(errp,
"Setting confidential guest policy is not supported for this platform");
return -1;
}

static int get_mem_map_entry(int index, ConfidentialGuestMemoryMapEntry *entry,
Error **errp)
{
Expand All @@ -82,6 +93,7 @@ static void confidential_guest_support_init(Object *obj)
ConfidentialGuestSupport *cgs = CONFIDENTIAL_GUEST_SUPPORT(obj);
cgs->check_support = check_support;
cgs->set_guest_state = set_guest_state;
cgs->set_guest_policy = set_guest_policy;
cgs->get_mem_map_entry = get_mem_map_entry;
}

Expand Down
Loading

0 comments on commit 260df2b

Please sign in to comment.