Place pork, sliced onions, garlic, ginger, ground turmeric, ground coriander, garam masala, red chili powder and coconut slices (if using) in a pressure cooker. Toss to coat pork in the ground spices. Season with salt. Cover the pressure cooker, and cook for about 5-6 whistles.