[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 14/51] i386/xen: add pc_machine_kvm_type to initialize XEN
From: |
David Woodhouse |
Subject: |
Re: [PATCH v6 14/51] i386/xen: add pc_machine_kvm_type to initialize XEN_EMULATE mode |
Date: |
Mon, 16 Jan 2023 19:45:32 +0000 |
User-agent: |
Evolution 3.44.4-0ubuntu1 |
On Mon, 2023-01-16 at 17:17 +0000, Paul Durrant wrote:
> ASS(oc); \
> > optsfn(mc); \
> > mc->init = initfn; \
> > + mc->kvm_type = pc_machine_kvm_type; \
>
> Given that it does nothing in the non-Xen-emulate case, would it not be
> neater to simply wrap the above line, and the definition of the
> function, in #ifdef CONFIG_XEN_EMU?
I did it that way first, but you just end up with *more* ifdefs that way.
I'll fix up what looks like a stray tab vs. space issue though; I
thought I ran it all through checkpatch and fixed that kind of thing.
smime.p7s
Description: S/MIME cryptographic signature
- [PATCH v6 39/51] hw/xen: Support HVM_PARAM_CALLBACK_TYPE_GSI callback, (continued)
- [PATCH v6 39/51] hw/xen: Support HVM_PARAM_CALLBACK_TYPE_GSI callback, David Woodhouse, 2023/01/10
- [PATCH v6 19/51] i386/xen: implement HYPERVISOR_vcpu_op, David Woodhouse, 2023/01/10
- [PATCH v6 06/51] i386/hvm: Set Xen vCPU ID in KVM, David Woodhouse, 2023/01/10
- [PATCH v6 07/51] xen-platform: exclude vfio-pci from the PCI platform unplug, David Woodhouse, 2023/01/10
- [PATCH v6 28/51] hw/xen: Implement EVTCHNOP_status, David Woodhouse, 2023/01/10
- [PATCH v6 44/51] i386/xen: Implement HYPERVISOR_grant_table_op and GNTTABOP_[gs]et_verson, David Woodhouse, 2023/01/10
- [PATCH v6 30/51] hw/xen: Implement EVTCHNOP_unmask, David Woodhouse, 2023/01/10
- [PATCH v6 14/51] i386/xen: add pc_machine_kvm_type to initialize XEN_EMULATE mode, David Woodhouse, 2023/01/10
- [PATCH v6 40/51] hw/xen: Support HVM_PARAM_CALLBACK_TYPE_PCI_INTX callback, David Woodhouse, 2023/01/10
- [PATCH v6 04/51] i386/kvm: Add xen-version KVM accelerator property and init KVM Xen support, David Woodhouse, 2023/01/10
- [PATCH v6 15/51] i386/xen: manage and save/restore Xen guest long_mode setting, David Woodhouse, 2023/01/10
- [PATCH v6 03/51] xen: Add XEN_DISABLED mode and make it default, David Woodhouse, 2023/01/10
- [PATCH v6 16/51] i386/xen: implement HYPERVISOR_memory_op, David Woodhouse, 2023/01/10
- [PATCH v6 17/51] i386/xen: implement XENMEM_add_to_physmap_batch, David Woodhouse, 2023/01/10
- [PATCH v6 11/51] i386/xen: implement HYPERVISOR_sched_op, SCHEDOP_shutdown, David Woodhouse, 2023/01/10