OvmfPkg/QemuFwCfgLib: Add option to dynamic alloc FW_CFG_DMA Access
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 6 Jul 2017 13:29:13 +0000 (09:29 -0400)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 11 Jul 2017 04:17:28 +0000 (21:17 -0700)
commit7cfe445d7f4b936497dbf9c8752de476a157752f
tree6815392b157136ca8d8f318530554ea3925e5239
parent09719a01b11b0e3b9fdd273da3afa0dbb68cb662
OvmfPkg/QemuFwCfgLib: Add option to dynamic alloc FW_CFG_DMA Access

Update InternalQemuFwCfgDmaBytes() to work with DMA Access pointer.
The change provides the flexibility to dynamically allocate the "Access"
when SEV is enabled.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c