1. 29 6月, 2020 1 次提交
    • M
      domain_conf: Remove zPCI validation from formatter · db4b24b6
      Michal Privoznik 提交于
      In 07659100 a validation code was added to
      virDomainDeviceInfoFormat() which reports an error if zPCI
      address entered in was incomplete. But, there are two problems
      with this approach.
      
      The first problem is the placement of the code - it doesn't
      belong into XML formatter rather than XML validator.
      
      The second one is that at the point of formatting XML the post
      parse callback has run and thus filled in required info.
      Therefore this check can never do something useful and instead of
      moving it into validator, it's removed completely.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      db4b24b6
  2. 27 6月, 2020 4 次提交
  3. 24 6月, 2020 1 次提交
  4. 23 6月, 2020 2 次提交
  5. 22 6月, 2020 1 次提交
  6. 19 6月, 2020 4 次提交
  7. 18 6月, 2020 1 次提交
  8. 16 6月, 2020 5 次提交
  9. 11 6月, 2020 1 次提交
  10. 10 6月, 2020 4 次提交
  11. 09 6月, 2020 2 次提交
  12. 04 6月, 2020 3 次提交
    • D
      conf: fix alignment in virObjectEvent to be 8 not 4 bytes · 2ac42f02
      Daniel P. Berrangé 提交于
      The previous fix accidentally picked up a debug change that put
      alignment back at 4, not 8, bytes as it claimed:
      
        commit 37ae0426
        Author: Daniel P. Berrangé <berrange@redhat.com>
        Date:   Wed Jun 3 11:18:23 2020 +0100
      
          conf: force 8 byte alignment for virObjectEvent
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      2ac42f02
    • D
      conf: force 8 byte alignment for virObjectEvent · 37ae0426
      Daniel P. Berrangé 提交于
      We need to be able to cast from virObjectEventPtr to one of
      its many subclasses. Some of these subclasses have 8 byte
      alignment on 32-bit platforms, but virObjectEventPtr only
      has 4 byte alignment.
      
      Previously the virObject base class had 8 byte alignment
      but this dropped to 4 byte when converted to inherit from
      GObject. This introduces cast alignment warnings on 32-bit:
      
      ../../src/conf/domain_event.c: In function 'virDomainEventDispatchDefaultFunc':
      ../../src/conf/domain_event.c:1656:30: error: cast increases required alignment of target type [-Werror=cast-align]
       1656 |             rtcChangeEvent = (virDomainEventRTCChangePtr)event;
            |                              ^
      ../../src/conf/domain_event.c:1785:34: error: cast increases required alignment of target type [-Werror=cast-align]
       1785 |             balloonChangeEvent = (virDomainEventBalloonChangePtr)event;
            |                                  ^
      ../../src/conf/domain_event.c:1896:35: error: cast increases required alignment of target type [-Werror=cast-align]
       1896 |             blockThresholdEvent = (virDomainEventBlockThresholdPtr)event;
            |                                   ^
      ../../src/conf/domain_event.c: In function 'virDomainQemuMonitorEventDispatchFunc':
      ../../src/conf/domain_event.c:1974:24: error: cast increases required alignment of target type [-Werror=cast-align]
       1974 |     qemuMonitorEvent = (virDomainQemuMonitorEventPtr)event;
            |                        ^
      ../../src/conf/domain_event.c: In function 'virDomainQemuMonitorEventFilter':
      ../../src/conf/domain_event.c:2179:20: error: cast increases required alignment of target type [-Werror=cast-align]
       2179 |     monitorEvent = (virDomainQemuMonitorEventPtr) event;
            |                    ^
      
      Forcing 8-byte alignment on virObjectEventPtr removes the
      alignment increase during casts to subclasses.
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      37ae0426
    • M
      Use more of VIR_XPATH_NODE_AUTORESTORE · d3a7479c
      Michal Privoznik 提交于
      This is convenience macro, use it more. This commit was generated
      using the following spatch:
      
        @@
        symbol node;
        identifier old;
        identifier ctxt;
        type xmlNodePtr;
        @@
        - xmlNodePtr old;
        + VIR_XPATH_NODE_AUTORESTORE(ctxt);
          ...
        - old = ctxt->node;
          ... when != old
        - ctxt->node = old;
      
        @@
        symbol node;
        identifier old;
        identifier ctxt;
        type xmlNodePtr;
        @@
        - xmlNodePtr old = ctxt->node;
        + VIR_XPATH_NODE_AUTORESTORE(ctxt);
          ... when != old
        - ctxt->node = old;
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      d3a7479c
  13. 26 5月, 2020 1 次提交
  14. 25 5月, 2020 1 次提交
  15. 18 5月, 2020 1 次提交
  16. 12 5月, 2020 2 次提交
  17. 05 5月, 2020 2 次提交
  18. 27 4月, 2020 4 次提交