Messages in this thread | | | Subject | Re: [PATCH 02/17] KVM: monolithic: x86: convert the kvm_x86_ops methods to external functions | From | Paolo Bonzini <> | Date | Mon, 23 Sep 2019 18:51:44 +0200 |
| |
On 23/09/19 18:13, Sean Christopherson wrote: > Alternatively, what if we use macros in the call sites, e.g. keep/require > vmx_ and svm_ prefixes for all functions, renaming VMX and SVM code as > needed? E.g.: > > > #define X86_OP(name) kvm_x86_vendor##_##name > > int kvm_arch_init(void *opaque) > { > if (X86_OP(supported_by_cpu())) {
Please no, the extra parentheses would be a mess to review.
Paolo
| |