Lines Matching +full:freq +full:- +full:table +full:- +full:hz

1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <linux/sev-guest.h>
15 #include <asm/sev-common.h>
74 u64 mask = (1ULL << bits) - 1; in lower_bits()
88 * Individual entries of the SNP CPUID table, as defined by the SNP
89 * Firmware ABI, Revision 0.9, Section 7.1, Table 14.
104 * SNP CPUID table, as defined by the SNP Firmware ABI, Revision 0.9,
105 * Section 8.14.2.6. Also noted there is the SNP firmware-enforced limit
106 * of 64 entries per CPUID table.
159 #define SNP_REQ_MAX_RETRY_DURATION (60*HZ)
160 #define SNP_REQ_RETRY_DELAY (2*HZ)
208 u8 payload[PAGE_SIZE - sizeof(struct snp_guest_msg_hdr)];
230 * GUEST_TSC_FREQ * (1 - (TSC_FACTOR * 0.00001))
234 * GUEST_TSC_FREQ -= (GUEST_TSC_FREQ * TSC_FACTOR) / 100000;
236 #define SNP_SCALE_TSC_FREQ(freq, factor) ((freq) - (freq) * (factor) / 100000) argument
256 * The secrets page contains 96-bytes of reserved field that can be used by
310 * Avoid information leakage by double-buffering shared messages
332 u8 svsm_buffer[PAGE_SIZE - 8];
366 #define SVSM_PVALIDATE_MAX_COUNT ((sizeof_field(struct svsm_ca, svsm_buffer) - \
468 * RMPADJUST modifies the RMP permissions of a page of a lesser-
471 * If the guest is running at a higher-privilege than the privilege
541 ghcb->save.sw_exit_code = 0; in vc_ghcb_invalidate()
542 __builtin_memset(ghcb->save.valid_bitmap, 0, sizeof(ghcb->save.valid_bitmap)); in vc_ghcb_invalidate()
545 /* I/O parameters for CPUID-related helpers */
589 * For SEV guests, a read from the first/last cache-lines of a 4K page in sev_evict_cache()
590 * using the guest key is sufficient to cause a flush of all cache-lines in sev_evict_cache()
596 val = bytes[page_idx * PAGE_SIZE + PAGE_SIZE - 1]; in sev_evict_cache()
623 return -ENOTTY; in snp_issue_svsm_attest_req()
633 static inline int snp_msg_init(struct snp_msg_desc *mdesc, int vmpck_id) { return -1; } in snp_msg_init()
637 struct snp_guest_req *req) { return -ENODEV; } in snp_send_guest_request()
638 static inline int snp_svsm_vtpm_send_command(u8 *buffer) { return -ENODEV; } in snp_svsm_vtpm_send_command()
666 static inline int snp_rmptable_init(void) { return -ENOSYS; } in snp_rmptable_init()
667 static inline int snp_lookup_rmpentry(u64 pfn, bool *assigned, int *level) { return -ENODEV; } in snp_lookup_rmpentry()
669 static inline int psmash(u64 pfn) { return -ENODEV; } in psmash()
673 return -ENODEV; in rmp_make_private()
675 static inline int rmp_make_shared(u64 pfn, enum pg_level level) { return -ENODEV; } in rmp_make_shared()