I have the optimization program
\begin{align} \min_{x \in \mathbb{R}^n, Q \in \mathbb{S}^n} &\bigg(\frac{1}{2}\Vert x \Vert ^2 + b^T x\bigg)\\ \text{ subject to }&\text{tr}(Q \cdot A_1) + a_1^Tx = c_1,\\ &\text{tr}(Q \cdot A_2) + a_2^Tx = c_2,\\ &\qquad\qquad\vdots \\ &\text{tr}(Q \cdot A_m) + a_n^Tx = c_n.\\ &Q \succeq 0 \end{align}
Is there any way I can turn this into a primal semidefinite program?
As an attempt I have replaced the quadratic term in the objective with $\theta$ and then added the constraint $\frac{1}{2}\Vert x \Vert ^2 \leq \theta$. However I'm not sure how to deal with inequality constraints in an SDP. Thanks.