Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-59221

SGX in host migration failed with 'qemu-kvm: failed to save SaveStateEntry with id(name): 2(ram): -5'

    • None
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      SGX in host migration failed with

       [qemu output] qemu-kvm: failed to save SaveStateEntry with id(name): 2(ram): -5
       [qemu output] qemu-kvm: Unable to write to socket: Broken pipe

      What is the impact of this issue to you?

      SGX migration can't work

      Please provide the package NVR for which the bug is seen:

      kernel-6.11.0-0.rc5.22.el10.x86_64
      edk2-ovmf-20240524-4.el10.noarch
      qemu-kvm-9.1.0-1.el10.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Boot src and dst SGX guests

                 Please check the attachment for the qemu command line.

      2. Migrate VM from src guest:

      {"execute": "migrate-set-capabilities", "arguments": {"capabilities": [

      {"state": true, "capability": "pause-before-switchover"}

      ]}, "id": "oWxVbxOC"}

      {"execute": "migrate", "arguments": \{"uri": "tcp:localhost:5820"}

      , "id": "AqXMKacr"}

      3. From dst guest:

      {"execute": "migrate-set-capabilities", "arguments": {"capabilities": [

      {"state": true, "capability": "late-block-activate"}

      ]}, "id": "qaQdY4HF"}

      {"execute": "migrate-incoming", "arguments": \{"uri": "tcp:[::]:5820"}

      , "id": "eFfionvw"}

      4. Wait 20mins and query migration status again:

      {"execute": "query-migrate", "id": "JIHhVIUg"}

      2024-09-14 07:56:05: {"return": {"expected-downtime": 4834, "status": "active", "setup-time": 173, "total-time": 1198875, "ram": {"total": 4316676096, "postcopy-requests": 0, "dirty-sync-count": 285, "multifd-bytes": 0, "pages-per-second": 33390, "downtime-bytes": 0, "page-size": 4096, "remaining": 434593792, "postcopy-bytes": 0, "mbps": 1082.1751200000001, "transferred": 159015528485, "dirty-sync-missed-zero-copy": 0, "precopy-bytes": 159015410547, "duplicate": 2946446, "dirty-pages-rate": 38907, "normal-bytes": 158678867968, "normal": 38739958}}, "id": "JIHhVIUg"}

      5. quit guest shows:

      qemu-kvm: failed to save SaveStateEntry with id(name): 2(ram): -5
      qemu-kvm: Unable to write to socket: Broken pipe

      Expected results

      Migration can work.

      Actual results

      In host migration failed.

              virt-maint virt-maint
              zixchen Zixi Chen
              virt-maint virt-maint
              Zixi Chen Zixi Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: