Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign ups390x: add support for s390x #990
Conversation
Dec 7, 2018
This was referenced
alicefr
force-pushed the
alicefr:s390x
branch
2 times, most recently
from
4592e59
to
0458cb5
Dec 7, 2018
jodh-intel
approved these changes
Dec 7, 2018
Very nice! Thanks @alicefr! |
const testCPUInfoTemplate = ` | ||
vendor_id : IBM/S390 | ||
# processors : 4 | ||
bogomips per cpu: 20325.00 |
This comment has been minimized.
This comment has been minimized.
cli/kata-check_s390x_test.go Outdated
cli/utils_s390x.go Outdated
func MaxQemuVCPUs() uint32 { | ||
// Max number of virtual Cpu defined in qemu. See | ||
// https://github.com/qemu/qemu/blob/80422b00196a7af4c6efb628fae0ad8b644e98af/target/s390x/cpu.h#L55 | ||
// #define S390_MAX_CPUS 248 |
This comment has been minimized.
This comment has been minimized.
jodh-intel
Dec 7, 2018
Contributor
It's a shame this can't be queried by calling qemu (via govmm) directly. But clearly not a blocker as other architectures also hard-code a value.
Aside: For the future, I do wonder if we could push the hard-coded arch-specific values down into govmm rather than having them in the runtime though - wdyt @markdryan?
This comment has been minimized.
This comment has been minimized.
alicefr
Dec 10, 2018
•
Author
Contributor
I didn't find a way. For Linux you can find it in /sys/devices/system/cpu/kernel_max
This comment has been minimized.
This comment has been minimized.
alicefr
force-pushed the
alicefr:s390x
branch
2 times, most recently
from
d5f8484
to
5800002
Dec 10, 2018
This comment has been minimized.
This comment has been minimized.
Ping @kata-containers/runtime! ;) |
This comment has been minimized.
This comment has been minimized.
/test |
This comment has been minimized.
This comment has been minimized.
Travis is complaining due to a static analysis issue:
|
alicefr
reviewed
Dec 10, 2018
virtcontainers/qemu.go Outdated
alicefr
force-pushed the
alicefr:s390x
branch
from
5800002
to
fdae96e
Dec 10, 2018
This comment has been minimized.
This comment has been minimized.
@jodh-intel now the changes in |
This comment has been minimized.
This comment has been minimized.
Thanks @alicefr. |
This comment has been minimized.
This comment has been minimized.
/retest |
devimc
reviewed
Dec 10, 2018
virtcontainers/qemu.go Outdated
devimc
reviewed
Dec 10, 2018
virtcontainers/qemu_s390x.go Outdated
alicefr
force-pushed the
alicefr:s390x
branch
from
fdae96e
to
7ee4c1a
Dec 10, 2018
This comment has been minimized.
This comment has been minimized.
thanks @alicefr |
This comment has been minimized.
This comment has been minimized.
/test |
jcvenegas
approved these changes
Dec 10, 2018
LGTM |
virtcontainers/qemu.go Outdated
This comment has been minimized.
This comment has been minimized.
Looks good! |
This comment has been minimized.
This comment has been minimized.
@bergwolf, @caoruidong, @grahamwhaley, @devimc - ptal |
alicefr
force-pushed the
alicefr:s390x
branch
from
7ee4c1a
to
411c2eb
Dec 11, 2018
This comment has been minimized.
This comment has been minimized.
/test |
caoruidong
approved these changes
Dec 11, 2018
lgtm |
cli/kata-check_s390x.go Outdated
return err | ||
} | ||
if err := q.qmpMonitorCh.qmp.ExecuteNetdevDel(q.qmpMonitorCh.ctx, tap.Name); err != nil { | ||
return err |
This comment has been minimized.
This comment has been minimized.
alicefr
force-pushed the
alicefr:s390x
branch
from
411c2eb
to
6f83061
Dec 11, 2018
This comment has been minimized.
This comment has been minimized.
I introduced the error check for the |
This comment has been minimized.
This comment has been minimized.
/test |
devimc
merged commit 976f5b2
into
kata-containers:master
Dec 11, 2018
8 checks passed
This comment has been minimized.
This comment has been minimized.
\o/ Thanks again @alicefr! |
alicefr commentedDec 7, 2018
The PR adds the support for s390x.
In the case of CCW devices, the vhost-user devices are not supported.
See #659. An error message is thrown if they tried to be used.
Memory hotplug is not supported on s390 yet and an error message is thrown.
The VirtioNetPCI has been changed to VirtioNet. The generalization
allows to set the VirtioNet to the correct CCW device for s390x.
A lot of the elements in this PR have been taken from #667
Fixes: #666
Co-authored-by: Yash D Jain ydjainopensource@gmail.com
Signed-off-by: Alice Frosi <afrosi@de.ibm.>