Let $f(x_1,x_2)=x_1x_2$, with $x_1,x_2 \ge 0$. Is $f$ a convex function? Why?
Edit (in view of the comments below)
The Hessian matrix is $$H = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}$$ which is indefinite (in general). In fact, $x H x'= 2x_1x_2$. However, $2x_1x_2\ge 0$ when $x_1,x_2\ge 0$, so that the Hessian is indeed positive semidefinite when $x_1,x_2\ge 0$. Therefore, is this sufficient to conclude that my $f$ is convex?
The Hessian is indeed indefinite. A $2\times 2$ matrix $A$ is positive semidefinite if and only if $x'Ax\geq0$ for all $x\in\mathbb{R}\times\mathbb{R}$ and not only those in $\mathbb{R}_+\times\mathbb{R}_+$. Hence $f(x,y)=xy$ is not convex.
Indeed, you could try to see $f(1,0)=f(0,1)=0$ while $f(1/2,1/2)=1/4 > 0$.