vbox: adjust to 'pthread_attr' removal in pthread

issue #2791
This commit is contained in:
Sebastian Sumpf 2018-04-26 14:58:57 +02:00 committed by Christian Helmuth
parent b4209cb3bb
commit df3e4edd76
13 changed files with 20 additions and 27 deletions

View File

@ -82,7 +82,6 @@ int SUPR3CallVMMR0Ex(PVMR0 pVMR0, VMCPUID idCpu, unsigned
bool create_emt_vcpu(pthread_t * thread, size_t stack_size,
const pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,

View File

@ -697,7 +697,6 @@ int SUPR3CallVMMR0Ex(PVMR0 pVMR0, VMCPUID idCpu, unsigned
bool create_emt_vcpu(pthread_t * thread, size_t stack_size,
const pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,

View File

@ -286,7 +286,6 @@ void *operator new (__SIZE_TYPE__ size, int log2_align)
bool create_emt_vcpu(pthread_t * pthread, size_t stack,
const pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,
@ -305,13 +304,13 @@ bool create_emt_vcpu(pthread_t * pthread, size_t stack,
if (vmx)
vcpu_handler = new (0x10) Vcpu_handler_vmx(genode_env(),
stack, attr, start_routine,
stack, start_routine,
arg, cpu_session, location,
cpu_id, name, pd_vcpus);
if (svm)
vcpu_handler = new (0x10) Vcpu_handler_svm(genode_env(),
stack, attr, start_routine,
stack, start_routine,
arg, cpu_session, location,
cpu_id, name, pd_vcpus);

View File

@ -767,7 +767,7 @@ class Vcpu_handler : public Vmm::Vcpu_dispatcher<Genode::Thread>,
};
Vcpu_handler(Genode::Env &env, size_t stack_size, const pthread_attr_t *attr,
Vcpu_handler(Genode::Env &env, size_t stack_size,
void *(*start_routine) (void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,
@ -776,7 +776,7 @@ class Vcpu_handler : public Vmm::Vcpu_dispatcher<Genode::Thread>,
:
Vmm::Vcpu_dispatcher<Genode::Thread>(env, stack_size, cpu_session,
location, name),
_pthread(*this, attr ? *attr : 0),
_pthread(*this),
_start_routine(start_routine),
_start_routine_arg(arg),
_vcpu(cpu_session, location, pd_vcpu),

View File

@ -94,14 +94,14 @@ class Vcpu_handler_svm : public Vcpu_handler
public:
Vcpu_handler_svm(Genode::Env &env, size_t stack_size, const pthread_attr_t *attr,
Vcpu_handler_svm(Genode::Env &env, size_t stack_size,
void *(*start_routine) (void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,
unsigned int cpu_id, const char * name,
Genode::Pd_session_capability pd_vcpu)
:
Vcpu_handler(env, stack_size, attr, start_routine, arg, cpu_session,
Vcpu_handler(env, stack_size, start_routine, arg, cpu_session,
location, cpu_id, name, pd_vcpu)
{
using namespace Nova;

View File

@ -158,14 +158,14 @@ class Vcpu_handler_vmx : public Vcpu_handler
public:
Vcpu_handler_vmx(Genode::Env &env, size_t stack_size, const pthread_attr_t *attr,
Vcpu_handler_vmx(Genode::Env &env, size_t stack_size,
void *(*start_routine) (void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,
unsigned int cpu_id, const char * name,
Genode::Pd_session_capability pd_vcpu)
:
Vcpu_handler(env, stack_size, attr, start_routine, arg, cpu_session,
Vcpu_handler(env, stack_size, start_routine, arg, cpu_session,
location, cpu_id, name, pd_vcpu)
{
using namespace Nova;

View File

@ -33,7 +33,6 @@ HRESULT genode_check_memory_config(ComObjPtr<Machine> machine);
* hardware acceleration support.
*/
bool create_emt_vcpu(pthread_t * pthread, size_t stack,
const pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,

View File

@ -89,7 +89,7 @@ static int create_thread(pthread_t *thread, const pthread_attr_t *attr,
Genode::Affinity::Space space = cpu_session->affinity_space();
Genode::Affinity::Location location(space.location_of_index(cpu_id));
if (create_emt_vcpu(thread, stack_size, attr, start_routine, arg,
if (create_emt_vcpu(thread, stack_size, start_routine, arg,
cpu_session, location, cpu_id, rtthread->szName))
return 0;
/*
@ -99,10 +99,9 @@ static int create_thread(pthread_t *thread, const pthread_attr_t *attr,
}
pthread_t thread_obj = new (vmm_heap())
pthread(attr ? *attr : 0, start_routine,
arg, stack_size, rtthread->szName,
cpu_connection(rtthread->enmType),
Genode::Affinity::Location());
pthread(start_routine, arg, stack_size, rtthread->szName,
cpu_connection(rtthread->enmType),
Genode::Affinity::Location());
if (!thread_obj)
return EAGAIN;

View File

@ -84,7 +84,6 @@ int SUPR3CallVMMR0Ex(PVMR0 pVMR0, VMCPUID idCpu, unsigned
bool create_emt_vcpu(pthread_t * thread, size_t stack_size,
const pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,

View File

@ -772,7 +772,6 @@ void *operator new (__SIZE_TYPE__ size, int log2_align)
bool create_emt_vcpu(pthread_t * pthread, ::size_t stack,
const pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,
@ -791,13 +790,13 @@ bool create_emt_vcpu(pthread_t * pthread, ::size_t stack,
if (vmx)
vcpu_handler = new (0x10) Vcpu_handler_vmx(genode_env(),
stack, attr, start_routine,
stack, start_routine,
arg, cpu_session, location,
cpu_id, name, pd_vcpus);
if (svm)
vcpu_handler = new (0x10) Vcpu_handler_svm(genode_env(),
stack, attr, start_routine,
stack, start_routine,
arg, cpu_session, location,
cpu_id, name, pd_vcpus);

View File

@ -788,7 +788,7 @@ class Vcpu_handler : public Vmm::Vcpu_dispatcher<Genode::Thread>,
};
Vcpu_handler(Genode::Env &env, size_t stack_size, const pthread_attr_t *attr,
Vcpu_handler(Genode::Env &env, size_t stack_size,
pthread::start_routine_t start_routine, void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,
@ -797,7 +797,7 @@ class Vcpu_handler : public Vmm::Vcpu_dispatcher<Genode::Thread>,
:
Vmm::Vcpu_dispatcher<Genode::Thread>(env, stack_size, cpu_session,
location, name),
_pthread(*this, attr ? *attr : 0),
_pthread(*this),
_start_routine(start_routine),
_start_routine_arg(arg),
_vcpu(cpu_session, location, pd_vcpu),

View File

@ -84,14 +84,14 @@ class Vcpu_handler_svm : public Vcpu_handler
public:
Vcpu_handler_svm(Genode::Env &env, size_t stack_size, const pthread_attr_t *attr,
Vcpu_handler_svm(Genode::Env &env, size_t stack_size,
void *(*start_routine) (void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,
unsigned int cpu_id, const char * name,
Genode::Pd_session_capability pd_vcpu)
:
Vcpu_handler(env, stack_size, attr, start_routine, arg, cpu_session,
Vcpu_handler(env, stack_size, start_routine, arg, cpu_session,
location, cpu_id, name, pd_vcpu)
{
using namespace Nova;

View File

@ -169,14 +169,14 @@ class Vcpu_handler_vmx : public Vcpu_handler
public:
Vcpu_handler_vmx(Genode::Env &env, size_t stack_size, const pthread_attr_t *attr,
Vcpu_handler_vmx(Genode::Env &env, size_t stack_size,
void *(*start_routine) (void *), void *arg,
Genode::Cpu_session * cpu_session,
Genode::Affinity::Location location,
unsigned int cpu_id, const char * name,
Genode::Pd_session_capability pd_vcpu)
:
Vcpu_handler(env, stack_size, attr, start_routine, arg, cpu_session,
Vcpu_handler(env, stack_size, start_routine, arg, cpu_session,
location, cpu_id, name, pd_vcpu)
{
using namespace Nova;