===================================================================
@@ -192,26 +192,6 @@ kvm_context_t kvm_init(struct kvm_callba
void kvm_finalize(kvm_context_t kvm);
/*!
- * \brief Disable the in-kernel IRQCHIP creation
- *
- * In-kernel irqchip is enabled by default. If userspace irqchip is to be used,
- * this should be called prior to kvm_create().
- *
- * \param kvm Pointer to the kvm_context
- */
-void kvm_disable_irqchip_creation(kvm_context_t kvm);
-
-/*!
- * \brief Disable the in-kernel PIT creation
- *
- * In-kernel pit is enabled by default. If userspace pit is to be used,
- * this should be called prior to kvm_create().
- *
- * \param kvm Pointer to the kvm_context
- */
-void kvm_disable_pit_creation(kvm_context_t kvm);
-
-/*!
* \brief Create new virtual machine
*
* This creates a new virtual machine, maps physical RAM to it, and creates a
===================================================================
@@ -392,16 +392,6 @@ void kvm_finalize(kvm_context_t kvm)
free(kvm);
}
-void kvm_disable_irqchip_creation(kvm_context_t kvm)
-{
- kvm->no_irqchip_creation = 1;
-}
-
-void kvm_disable_pit_creation(kvm_context_t kvm)
-{
- kvm->no_pit_creation = 1;
-}
-
kvm_vcpu_context_t kvm_create_vcpu(kvm_context_t kvm, int id)
{
long mmap_size;
@@ -2338,10 +2328,10 @@ int kvm_qemu_create_context(void)
int r;
if (!kvm_irqchip) {
- kvm_disable_irqchip_creation(kvm_context);
+ kvm_context->no_irqchip_creation = 1;
}
if (!kvm_pit) {
- kvm_disable_pit_creation(kvm_context);
+ kvm_context->no_pit_creation = 1;
}
if (kvm_create(kvm_context, 0, NULL) < 0) {
kvm_qemu_destroy();