mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 15:31:15 +00:00
docs/iommu: Update cpu and memory option parameters
Use of backing file is deprecated hence use the `hugepages` field. Also use the `boot` field for specifying number of cpus Signed-off-by: Amey Narkhede <ameynarkhede02@gmail.com>
This commit is contained in:
parent
0c33bf0044
commit
dc9c12518e
@ -86,7 +86,7 @@ virtual IOMMU:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
./cloud-hypervisor \
|
./cloud-hypervisor \
|
||||||
--cpus 1 \
|
--cpus boot=1 \
|
||||||
--memory size=512M \
|
--memory size=512M \
|
||||||
--disk path=focal-server-cloudimg-amd64.raw,iommu=on \
|
--disk path=focal-server-cloudimg-amd64.raw,iommu=on \
|
||||||
--kernel custom-bzImage \
|
--kernel custom-bzImage \
|
||||||
@ -163,8 +163,8 @@ be consumed.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
./cloud-hypervisor \
|
./cloud-hypervisor \
|
||||||
--cpus 1 \
|
--cpus boot=1 \
|
||||||
--memory size=8G,file=/dev/hugepages \
|
--memory size=8G,hugepages=on \
|
||||||
--disk path=focal-server-cloudimg-amd64.raw \
|
--disk path=focal-server-cloudimg-amd64.raw \
|
||||||
--kernel custom-bzImage \
|
--kernel custom-bzImage \
|
||||||
--cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw hugepagesz=2M hugepages=2048" \
|
--cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw hugepagesz=2M hugepages=2048" \
|
||||||
@ -180,8 +180,8 @@ passing through is `0000:00:01.0`.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
./cloud-hypervisor \
|
./cloud-hypervisor \
|
||||||
--cpus 1 \
|
--cpus boot=1 \
|
||||||
--memory size=8G,file=/dev/hugepages \
|
--memory size=8G,hugepages=on \
|
||||||
--disk path=focal-server-cloudimg-amd64.raw \
|
--disk path=focal-server-cloudimg-amd64.raw \
|
||||||
--kernel custom-bzImage \
|
--kernel custom-bzImage \
|
||||||
--cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw kvm-intel.nested=1 vfio_iommu_type1.allow_unsafe_interrupts rw hugepagesz=2M hugepages=2048" \
|
--cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw kvm-intel.nested=1 vfio_iommu_type1.allow_unsafe_interrupts rw hugepagesz=2M hugepages=2048" \
|
||||||
@ -200,8 +200,8 @@ Last thing is to start the L2 guest with the huge pages memory backend.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
./cloud-hypervisor \
|
./cloud-hypervisor \
|
||||||
--cpus 1 \
|
--cpus boot=1 \
|
||||||
--memory size=4G,file=/dev/hugepages \
|
--memory size=4G,hugepages=on \
|
||||||
--disk path=focal-server-cloudimg-amd64.raw \
|
--disk path=focal-server-cloudimg-amd64.raw \
|
||||||
--kernel custom-bzImage \
|
--kernel custom-bzImage \
|
||||||
--cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \
|
--cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \
|
||||||
|
Loading…
Reference in New Issue
Block a user