1. 23 6月, 2020 1 次提交
  2. 22 6月, 2020 1 次提交
  3. 19 6月, 2020 4 次提交
  4. 18 6月, 2020 1 次提交
  5. 16 6月, 2020 5 次提交
  6. 11 6月, 2020 1 次提交
  7. 10 6月, 2020 4 次提交
  8. 09 6月, 2020 2 次提交
  9. 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
  10. 26 5月, 2020 1 次提交
  11. 25 5月, 2020 1 次提交
  12. 18 5月, 2020 1 次提交
  13. 12 5月, 2020 2 次提交
  14. 05 5月, 2020 2 次提交
  15. 27 4月, 2020 4 次提交
  16. 24 4月, 2020 2 次提交
  17. 23 4月, 2020 1 次提交
  18. 22 4月, 2020 1 次提交
  19. 21 4月, 2020 2 次提交
    • J
      conf: add xen hypervisor feature 'passthrough' · fadbaa23
      Jim Fehlig 提交于
      'passthrough' is Xen-Specific guest configuration option new to Xen 4.13
      that enables IOMMU mappings for a guest and hence whether it supports PCI
      passthrough. The default is disabled. See the xl.cfg(5) man page and
      xen.git commit babde47a3fe for more details.
      
      The default state of disabled prevents hotlugging PCI devices. However,
      if the guest configuration contains a PCI passthrough device at time of
      creation, libxl will automatically enable 'passthrough' and subsequent
      hotplugging of PCI devices will also be possible. It is not possible to
      unconditionally enable 'passthrough' since it would introduce a migration
      incompatibility due to guest ABI change. Instead, introduce another Xen
      hypervisor feature that can be used to enable guest PCI passthrough
      
        <features>
          <xen>
            <passthrough state='on'/>
          </xen>
        </features>
      
      To allow finer control over how IOMMU maps to guest P2M table, the
      passthrough element also supports a 'mode' attribute with values
      restricted to snyc_pt and share_pt, similar to xl.cfg(5) 'passthrough'
      setting .
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      fadbaa23
    • M
      conf: add xen specific feature: e820_host · b7d6648d
      Marek Marczykowski-Górecki 提交于
      e820_host is a Xen-specific option, only available for PV domains, that
      provides the domain a virtual e820 memory map based on the host one. It
      is enabled with a new Xen hypervisor feature, e.g.
      
        <features>
          <xen>
            <e820_host state='on'/>
          </xen>
        </features>
      
      e820_host is required when using PCI passthrough and is generally
      considered safe for any PV kernel. e820_host is silently ignored if set
      in HVM domain configuration. See xl.cfg(5) man page in the Xen
      documentation for more details.
      Signed-off-by: NMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
      Reviewed-by: NJim Fehlig <jfehlig@suse.com>
      b7d6648d
  20. 16 4月, 2020 1 次提交