Commit 64be44fd authored by Alexander Efremkin's avatar Alexander Efremkin
Browse files

VM transfer buffer size option

parent c3d27bc4
Pipeline #244332780 passed with stages
in 43 minutes and 3 seconds
......@@ -30,6 +30,12 @@ import logging
# CONSTANTS AND DEFINITIONS
#
# VM file transfer uses its own packet size, by default it is rather small
# and slows down installation kernel transfer over high-latency connections.
# Not all VMs support values up to 32K, but tests have shown 8000 is well
# supported.
DEFAULT_TRANSFER_BUFFER_SIZE = 8000
#
# CODE
#
......@@ -67,7 +73,9 @@ class PlatZvm(PlatBase):
raise ValueError(
'An empty z/VM guest password is trying to be used. '
'Please set the correct password.')
params = {}
params = {
'transfer-buffer-size': DEFAULT_TRANSFER_BUFFER_SIZE
}
try:
params['byuser'] = self._guest_prof.credentials['zvm-logonby']
except KeyError:
......
......@@ -81,6 +81,10 @@ class TestPlatZvm(TestCase):
"""
Test the boot operation
"""
args = self._mock_hyp_cls.mock_calls[0][1]
self.assertEqual('zvm', args[0])
self.assertIn('transfer-buffer-size', args[5])
kargs = "param1=value1 param2=value2"
self._plat.boot(kargs)
self._mock_hyp_cls.return_value.login.assert_called_with()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment