We're allocating minimally a full page, so no reason to not also use
all that space.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
BUG_ON(!port->driver->tx_empty);
if ( port->txbuf != NULL )
return;
- if ( serial_txbufsz < 512 )
- serial_txbufsz = 512;
+ if ( serial_txbufsz < PAGE_SIZE )
+ serial_txbufsz = PAGE_SIZE;
while ( serial_txbufsz & (serial_txbufsz - 1) )
serial_txbufsz &= serial_txbufsz - 1;
port->txbuf = alloc_xenheap_pages(