Re: [Qemu-devel] [PATCH v5 14/20] trace: dynamically allocate trace_dstate in CPUState

2016-10-03 Thread Stefan Hajnoczi
On Wed, Sep 28, 2016 at 02:08:17PM +0100, Daniel P. Berrange wrote: > The CPUState struct has a bitmap tracking which VCPU > events are currently active. This is indexed based on > the event ID values, and sized according the maximum > TraceEventVCPUID enum value. > > When we start dynamically ass

Re: [Qemu-devel] [PATCH v5 14/20] trace: dynamically allocate trace_dstate in CPUState

2016-09-30 Thread LluĂ­s Vilanova
Daniel P Berrange writes: > The CPUState struct has a bitmap tracking which VCPU > events are currently active. This is indexed based on > the event ID values, and sized according the maximum > TraceEventVCPUID enum value. > When we start dynamically assigning IDs at runtime, > we can't staticall

[Qemu-devel] [PATCH v5 14/20] trace: dynamically allocate trace_dstate in CPUState

2016-09-28 Thread Daniel P. Berrange
The CPUState struct has a bitmap tracking which VCPU events are currently active. This is indexed based on the event ID values, and sized according the maximum TraceEventVCPUID enum value. When we start dynamically assigning IDs at runtime, we can't statically declare a bitmap without making an as