In contrast to other allocations made by pvscsi_init_rings(),
ring_desc is only used internally by SeaBIOS (not passed to
device-controller) and there is not restriction which force
it to be page aligned.
Reviewed-by: Mark Kanda <mark.kanda@oracle.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
{
struct PVSCSICmdDescSetupRings cmd = {0,};
- struct pvscsi_ring_dsc_s *dsc = memalign_high(PAGE_SIZE, sizeof(*dsc));
+ struct pvscsi_ring_dsc_s *dsc = malloc_high(sizeof(*dsc));
if (!dsc) {
warn_noalloc();
return;