mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
HV: remove unused function copy_to_gva
Change-Id: I18a6c860ba4bcec4e5915fa6a2a18ed1ecb20fff Tracked-On: #3123 Signed-off-by: yliu79 <ying2.liu@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
163c63d21f
commit
26de86d761
@ -426,12 +426,6 @@ int32_t copy_from_gva(struct acrn_vcpu *vcpu, void *h_ptr, uint64_t gva,
|
|||||||
return copy_gva(vcpu, h_ptr, gva, size, err_code, fault_addr, 1);
|
return copy_gva(vcpu, h_ptr, gva, size, err_code, fault_addr, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t copy_to_gva(struct acrn_vcpu *vcpu, void *h_ptr, uint64_t gva,
|
|
||||||
uint32_t size, uint32_t *err_code, uint64_t *fault_addr)
|
|
||||||
{
|
|
||||||
return copy_gva(vcpu, h_ptr, gva, size, err_code, fault_addr, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* gpa --> hpa -->hva */
|
/* gpa --> hpa -->hva */
|
||||||
void *gpa2hva(struct acrn_vm *vm, uint64_t x)
|
void *gpa2hva(struct acrn_vm *vm, uint64_t x)
|
||||||
{
|
{
|
||||||
|
@ -95,24 +95,6 @@ int32_t copy_to_gpa(struct acrn_vm *vm, void *h_ptr, uint64_t gpa, uint32_t size
|
|||||||
*/
|
*/
|
||||||
int32_t copy_from_gva(struct acrn_vcpu *vcpu, void *h_ptr, uint64_t gva,
|
int32_t copy_from_gva(struct acrn_vcpu *vcpu, void *h_ptr, uint64_t gva,
|
||||||
uint32_t size, uint32_t *err_code, uint64_t *fault_addr);
|
uint32_t size, uint32_t *err_code, uint64_t *fault_addr);
|
||||||
/**
|
|
||||||
* @brief Copy data from HV address space to VM GVA space
|
|
||||||
*
|
|
||||||
* @param[in] vcpu The pointer that points to vcpu data structure
|
|
||||||
* @param[in] h_ptr The pointer that points the start HV address
|
|
||||||
* of HV memory region which data is stored in
|
|
||||||
* @param[out] gva The start GVA address of GVA memory region which data
|
|
||||||
* will be copied into
|
|
||||||
* @param[in] size The size (bytes) of GVA memory region which data will
|
|
||||||
* be copied into
|
|
||||||
* @param[out] err_code The page fault flags
|
|
||||||
* @param[out] fault_addr The GVA address that causes a page fault
|
|
||||||
*/
|
|
||||||
int32_t copy_to_gva(struct acrn_vcpu *vcpu, void *h_ptr, uint64_t gva,
|
|
||||||
uint32_t size, uint32_t *err_code, uint64_t *fault_addr);
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
*/
|
|
||||||
#endif /* !ASSEMBLER */
|
#endif /* !ASSEMBLER */
|
||||||
|
|
||||||
#endif /* GUEST_H*/
|
#endif /* GUEST_H*/
|
||||||
|
Loading…
Reference in New Issue
Block a user