Bug 2228103

Summary: virt-launcher does not start with isolateEmulator thread and an even CPU count
Product: Container Native Virtualization (CNV) Reporter: Orel Misan <omisan>
Component: VirtualizationAssignee: Itamar Holder <iholder>
Status: NEW --- QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: high    
Version: 4.14.0CC: iholder
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orel Misan 2023-08-01 12:12:00 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
Create the following VMI:
```
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
metadata:
  annotations:
    cpu-load-balancing.crio.io: disable
    cpu-quota.crio.io: disable
    irq-load-balancing.crio.io: disable
  name: dpdk-vmi
spec:
  domain:
    cpu:
      cores: 8
      dedicatedCpuPlacement: true
      isolateEmulatorThread: true
      model: host-model
      sockets: 1
      threads: 1
    devices:
      disks:
        - disk:
            bus: virtio
          name: rootdisk
        - disk:
            bus: virtio
          name: cloudinitdisk
      networkInterfaceMultiqueue: true
      rng: {}
    memory:
      guest: 4Gi
      hugepages:
        pageSize: 1Gi
  terminationGracePeriodSeconds: 0
  volumes:
    - containerDisk:
        image: 'quay.io/kiagnose/kubevirt-dpdk-checkup-vm:main'
        imagePullPolicy: Always
      name: rootdisk
    - cloudInitNoCloud:
        userData: |
          #cloud-config
          user: cloud-user
          password: 0tli-pxem-xknu
          chpasswd:
            expire: false
      name: cloudinitdisk
```

Actual results:
virt-launcher pod does not start.
kubelet emits the following event:
```
SMT Alignment Error: requested 9 cpus not multiple cpus per core = 2
```


Expected results:
The VMI should start.

Additional info: