weizhouapache opened a new pull request, #7333:
URL: https://github.com/apache/cloudstack/pull/7333

   ### Description
   
   This PR adds two vm setting for user vms on KVM
   - nic multiqueue number
   - packed virtqueues enabled . optional are true and false (false by 
default). It requires qemu>=4.2.0 and libvirt >=6.3.0
   
   Tested ok on ubuntu 22 and rocky 8.4
   
   (See test results in Screenshots part)
   <!--- Describe your changes in DETAIL - And how has behaviour functionally 
changed. -->
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to 
reproduce. -->
   
   <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be 
closed when this PR gets merged -->
   <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
   <!-- Fixes: # -->
   
   <!--- 
*********************************************************************************
 -->
   <!--- NOTE: AUTOMATATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE 
DOCUMENTATION. -->
   <!--- PLEASE PUT AN 'X' in only **ONE** box -->
   <!--- 
*********************************************************************************
 -->
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [x] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [x] Minor
   
   
   ### Screenshots (if appropriate):
   
   - Deploy a vm
   There are two new options in "Advanced mode" part.
   
![image](https://user-images.githubusercontent.com/57355700/224668482-c4403666-c47e-4c91-8c4c-22165045f552.png)
   
   - Start the vm. check qemu process on kvm host
   
![image](https://user-images.githubusercontent.com/57355700/224670292-4940259d-c67e-44e9-bf32-5bf5c0106710.png)
   it shows
   ```
   -netdev 
tap,fds=57:59:60:61:62:63,id=hostnet0,vhost=on,vhostfds=64:65:66:67:68:69 
   -device 
virtio-net-pci,packed=on,mq=on,vectors=14,netdev=hostnet0,id=net0,mac=02:00:3f:4f:00:0a,bus=pci.0,addr=0x3
   ```
   (vectors = 2 * queue number + 2)
   
   - `virsh dumpxml` shows `      <driver queues='6' packed='on'/>`
   
![image](https://user-images.githubusercontent.com/57355700/224671840-49be0432-4fef-4aac-b2f3-64165d9d4306.png)
   
   - log into the vm, and run some commands
   
![image](https://user-images.githubusercontent.com/57355700/224671080-382cefb1-c8e0-4a60-95cc-d81803efffad.png)
   
   
![image](https://user-images.githubusercontent.com/57355700/224671174-31f3104a-c77e-4395-ace1-fe396db26755.png)
   
   
![image](https://user-images.githubusercontent.com/57355700/224671308-2e8da1aa-7523-4271-becb-e7ae228d6bf4.png)
   
   - enable multiqueue inside user vm
   
![image](https://user-images.githubusercontent.com/57355700/224671502-f465664e-ba33-4089-9be2-a59290d2d9fb.png)
   
   
![image](https://user-images.githubusercontent.com/57355700/224671566-13dba516-5a91-4a98-8d9b-558a6befe3a5.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to